add PB bounce error

pico-v0.38
alanbjohnston 3 years ago committed by GitHub
parent a64a7868ce
commit 3c115f2365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3398,6 +3398,11 @@ void sleep(float timer) { // sleeps for intervals more than 0.01 milli seconds
void process_pushbutton() {
if (new_mode != mode) {
Serial.println("******* PB bounce error!! *******\n\n");
return;
}
// Serial.println("PB pressed!");
int release = FALSE;
@ -4908,9 +4913,11 @@ void write_mode() {
print_string(buff);
}
// if (mode_file.write(buff, strlen(buff))) == strlen(buff))
Serial.println(mode_file.write(buff, strlen(buff)));
if (mode_file.write(buff, strlen(buff))) != strlen(buff)) {
// Serial.println(mode_file.write(buff, strlen(buff)));
Serial.println("*** mode file write error! ***\n\n");
blinkFastTimes(3);
}
mode_file.close();
// Serial.println("Write complete");

Loading…
Cancel
Save

Powered by TurnKey Linux.