ThermometerPro/fatal.cpp

13 lines
219 B
C++
Raw Permalink Normal View History

2014-02-23 21:12:13 +01:00
#include"fatal.h"
#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
Serial.print("Fatal: "); Serial.println(code);
2014-02-23 21:12:13 +01:00
while (1);
}