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.
Fork of my_eeprom_funcs by
Diff: my_eeprom_funcs.h
- Revision:
- 3:69e1c4ed69e1
- Parent:
- 1:6bdc99dd8e0a
- Child:
- 4:944a4646b825
--- a/my_eeprom_funcs.h Tue Sep 30 21:17:32 2014 +0000
+++ b/my_eeprom_funcs.h Thu Oct 02 19:41:15 2014 +0000
@@ -3,6 +3,25 @@
#include "eeprom.h"
+
+//Debug is disabled by default
+#if 1
+//Enable debug
+#include <cstdio>
+#define DBG(x, ...) std::printf("[main : DBG]"x"\r\n", ##__VA_ARGS__);
+#define WARN(x, ...) std::printf("[main : WARN]"x"\r\n", ##__VA_ARGS__);
+#define ERR(x, ...) std::printf("[main : ERR]"x"\r\n", ##__VA_ARGS__);
+
+#else
+//Disable debug
+#define DBG(x, ...)
+#define WARN(x, ...)
+#define ERR(x, ...)
+
+#endif
+
+
+
/*
* Default device network configuration
*/
