MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: ErrorLogger.cpp
- Revision:
- 0:bc6f14fc60c7
- Child:
- 4:45dc5590abc0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ErrorLogger.cpp Fri May 15 17:24:32 2015 +0000 @@ -0,0 +1,11 @@ +#include "ErrorLogger.h" + +void InitLogger(Serial* dp) { + if(debugPort == dp) return; + debugPort = dp; +} + +void AbortWithMsg(const char* msg) { + debugPort->printf(msg); + abort(); +} \ No newline at end of file