checksum

void data_process()
{
buzzer_flag=0;
for (int i=0; i<6; i++){
Serial.print(data*);*

  • }*
  • Serial.println(' ');*
  • for(int i=0; i<5; i++){*
  • for(int j=0; j<6; j++){*
    Catch_[j]=bitRead(data*, j);
    }
    }
    for(int i=0; i<5; i++){
    for(int j=0; j<6; j++){_
    if(Catch[j]==0){digitalWrite(Out[j],HIGH); Buzz_Beep();}
    _ else {digitalWrite(Out[j],LOW);digitalWrite(buzzer, LOW);}
    }
    }_

    // if (buzzer_flag==1){digitalWrite(buzzer, HIGH); Buzz_Beep();}
    _// else {digitalWrite(buzzer, LOW); digitalWrite(strobe, LOW);}
    // delay(10);
    /////////////for diplay only//////////////////
    // ** this where i'm thinking of where to put**
    // my checksum crc codes but I dont know how
    //
    // suggested codes*

    //
    // __ byte CRC8(const byte *data, byte len) {__
    // byte crc = 0x00;
    // while (len--) {
    // byte extract = *data++;
    // for (byte tempI = 8; tempI; tempI--) {
    // byte sum = (crc ^ extract) & 0x01;
    // crc >>= 1;
    // if (sum) {
    // crc ^= 0x8C;
    // }
    // extract >>= 1;
    // }
    // }
    // return crc;
    // }
    /////////////for diplay only//////////////////
    }

    void Buzz_Beep()
    {
    * digitalWrite(buzzer, HIGH);
    delay(100);
    digitalWrite(buzzer, LOW);
    delay(100);
    }*_

Is their a question here?

Please read this:-
How to use this forum
Because your post is breaking the rules about posting code.

You can't define a function inside another function. You would need to move the CRC8 function definition out of the data_process() definition.

It's not too late to edit your original post and add the tags