MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
ErrorLogger.cpp@1:6cd6d2760856, 2015-05-24 (annotated)
- Committer:
- ojan
- Date:
- Sun May 24 17:32:47 2015 +0000
- Revision:
- 1:6cd6d2760856
- Parent:
- 0:bc6f14fc60c7
- Child:
- 4:45dc5590abc0
Send all sensor's data to PC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ojan | 0:bc6f14fc60c7 | 1 | #include "ErrorLogger.h" |
ojan | 0:bc6f14fc60c7 | 2 | |
ojan | 0:bc6f14fc60c7 | 3 | void InitLogger(Serial* dp) { |
ojan | 0:bc6f14fc60c7 | 4 | if(debugPort == dp) return; |
ojan | 0:bc6f14fc60c7 | 5 | debugPort = dp; |
ojan | 0:bc6f14fc60c7 | 6 | } |
ojan | 0:bc6f14fc60c7 | 7 | |
ojan | 0:bc6f14fc60c7 | 8 | void AbortWithMsg(const char* msg) { |
ojan | 0:bc6f14fc60c7 | 9 | debugPort->printf(msg); |
ojan | 0:bc6f14fc60c7 | 10 | abort(); |
ojan | 0:bc6f14fc60c7 | 11 | } |