Implement panic() function

This commit is contained in:
Quinten Kock 2020-06-16 00:08:29 +02:00
parent a4bc961b2c
commit 19a2e5e076
1 changed files with 7 additions and 0 deletions

7
Panic.h Normal file
View File

@ -0,0 +1,7 @@
void panic(const __FlashStringHelper* message) {
while(true) {
Serial.println(F("PANIC!"));
Serial.println(message);
delay(1000);
}
}