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

1 post / 0 new
vinod sukhadeve
vinod sukhadeve's picture
Offline
Joined: Sep 13, 2017
problem in compiling the code of project"Biometric Attendance System using Fingerprint Sensor and Arduino Uno"
September 13, 2017 - 4:00pm

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???