-

Revision:
6:9f8adf722fc3
Parent:
5:bb12605080d5
--- a/Counter.cpp	Fri Nov 16 14:52:41 2018 +0000
+++ b/Counter.cpp	Mon Nov 19 19:00:30 2018 +0000
@@ -1,10 +1,11 @@
 #include "Counter.h"
+#include "mbed.h"
 
 //#define COUNTER_DEBUG
 
-#ifdef COUNTER_DEBUG
+
 Serial debug_out(USBTX, USBRX);
-#endif
+
 Counter::Counter()
 {
     is_new_count = flash_size() - SECTOR_SIZE;
@@ -16,16 +17,15 @@
     this->init();
 }
 
-#ifdef COUNTER_DEBUG
+
 void Counter::print_memory()
 {
     int *ptr = (int*) address;
-    debug_out.printf("PartyID\tVoteCt\tMemCt\tAddress\r\n");
+    printf("PartyID\tVoteCt\tMemCt\tAddress\r\n");
     for(int i=0; i<MAX_LEN; i++) {
-        debug_out.printf("%dID\t%d\t%d\t%p\r\n", i, count[i], ptr[i], (ptr+i));
+        printf("%dID\t%d\t%d\t%p\r\n", i, count[i], ptr[i], (ptr+i));
     }
 }
-#endif
 
 void Counter::init()
 {