new battery bar

Dependencies:   CAN_IDs CanControl Dashboard PinDetect PowerControl mbed-rtos mbed

Revision:
3:b164662f9740
Parent:
1:c5d8ea5d049b
Child:
4:dfd10f43cc8b
--- a/main.cpp	Wed May 10 17:14:40 2017 +0000
+++ b/main.cpp	Wed May 10 18:45:51 2017 +0000
@@ -27,7 +27,7 @@
 
 // initialize serial connection for debug
 #ifdef DEBUG
-Serial pc(SERIAL_TX, SERIAL_RX);
+RawSerial pc(SERIAL_TX, SERIAL_RX);
 #endif
 
 // initialize canbus
@@ -118,12 +118,12 @@
 // Thread 1 - Power
 void power(){
 #ifdef DEBUG
-    printf("Thread 1 - Power start\r\n ");
+    pc.printf("Thread 1 - Power start\r\n ");
 #endif
 
     PowerControl powercontrol(PUSH_GREEN, PUSH_RED); 
-    #ifdef DEBUG
-    printf("Thread 1 - started\r\n ");
+#ifdef DEBUG
+    pc.printf("Thread 1 - started\r\n ");
 #endif
     
     //sleep();
@@ -142,7 +142,7 @@
 int main() {  
 #ifdef DEBUG
     pc.baud(115200);
-    printf("Starting SOS V1.0\n");
+    pc.printf("Starting SOS V1.0\n");
 #endif
     // change CAN frequency
     can.frequency(250000);