Petter Bellander / Mbed 2 deprecated Saab-BT

Dependencies:   mbed

Revision:
12:4194c47ca60b
Parent:
11:74844f6ca8cf
Child:
13:968af0520530
--- a/CDC.cpp	Thu Jan 28 21:22:08 2016 +0000
+++ b/CDC.cpp	Fri Jan 29 20:27:37 2016 +0000
@@ -90,10 +90,10 @@
     CAN_DispMsg[0].data[1] = 0x96; // Address of the SID
     CAN_DispMsg[1].data[1] = 0x96; // Address of the SID
     CAN_DispMsg[2].data[1] = 0x96; // Address of the SID
-    CAN_DispMsg[0].data[2] = 0x01; // Writing to row 1
-    CAN_DispMsg[1].data[2] = 0x01; // Writing to row 1
-    CAN_DispMsg[2].data[2] = 0x01; // Writing to row 1
-    display("");
+    CAN_DispMsg[0].data[2] = 0x02; // Writing to row 2
+    CAN_DispMsg[1].data[2] = 0x02; // Writing to row 2
+    CAN_DispMsg[2].data[2] = 0x02; // Writing to row 2
+    display("PETTERS BT");
     
     sleep_timer.start();
 }
@@ -109,6 +109,7 @@
                 send_can_frame(DISPLAY_RESOURCE_REQ, display_request_cmd);
                 update_elapsed_time();
                 send_can_frame(GENERAL_STATUS_CDC, cdc_status_cmd);
+                led1 = !led1;
                 return IBUS_HEAD_UNIT_ON;
             case NODE_STATUS_RX:
                 send_can_frame(NODE_STATUS_TX, ninefive_cmd);