Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
ErrorLogger.cpp@22:3caa2983bf1d, 2015-06-23 (annotated)
- Committer:
- ojan
- Date:
- Tue Jun 23 15:23:38 2015 +0000
- Revision:
- 22:3caa2983bf1d
- Parent:
- 4:45dc5590abc0
LAURUS_Program_v2.3.1
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 | 4:45dc5590abc0 | 9 | while(!debugPort->writeable()); |
| ojan | 0:bc6f14fc60c7 | 10 | debugPort->printf(msg); |
| ojan | 0:bc6f14fc60c7 | 11 | abort(); |
| ojan | 0:bc6f14fc60c7 | 12 | } |
