problem in compiling the code of project"Biometric Attendance System using Fingerprint Sensor and Arduino Uno"

dear programmer

I copied the code from the project title "Biometric Attendance System using Fingerprint Sensor and Arduino Uno" from your website.

The code having only one error because of that error, it is not compiling. i.e at "return"

the arduino error log details are 

Arduino: 1.6.5 (Windows 7), Board: "Arduino/Genuino Uno"

fingerprint_attendance.ino: In function 'uint8_t getFingerprintEnroll()':
fingerprint_attendance:461: error: return-statement with no value, in function returning 'uint8_t {aka unsigned char}' [-fpermissive]
return-statement with no value, in function returning 'uint8_t {aka unsigned char}' [-fpermissive]

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

so I had written p in front of the return. i.e "return p". Now the code is compiled successfully. After uploading the code, it runs up-to date and time, and restarted several times untill I power off the supply.

error in code is showed in following snap of code with bold wordwith underline.

case FINGERPRINT_IMAGEFAIL:
      Serial.println("Imaging error");
      break;
    default:
      Serial.println("Unknown error");
      return;
    }
  }
  // OK success!
  p = finger.image2Tz(2);
  switch (p) {

what to do now???

Bro have u got ant answer for that i am facing the same problem can u pls reply .

  Joined November 20, 2021      1
Saturday at 12:03 PM