2014-02-23 21:12:13 +01:00
|
|
|
#include"fatal.h"
|
|
|
|
|
2014-03-09 00:25:48 +01:00
|
|
|
#include <Arduino.h>
|
2014-02-23 21:12:13 +01:00
|
|
|
|
|
|
|
void fatal(uint8_t code) {
|
2014-03-08 00:23:46 +01:00
|
|
|
// cli();
|
2014-02-23 21:12:13 +01:00
|
|
|
// do something with the code and somehow show that there is a problem
|
2014-03-09 00:25:48 +01:00
|
|
|
Serial.print("Fatal: "); Serial.println(code);
|
2014-02-23 21:12:13 +01:00
|
|
|
while (1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|