SLCAN/CAN-USB implementation for mbed targets

Dependencies:   USBDevice mbed

Revision:
1:3644b10bce2f
Parent:
0:f2565808eea5
Child:
2:1327e61cc56b
--- a/slcan.cpp	Sat Jun 04 04:40:58 2016 +0000
+++ b/slcan.cpp	Thu Jun 09 05:30:21 2016 +0000
@@ -306,7 +306,6 @@
             } else {
                 // Null-terminate the buffered command
                 inputCommandBuffer[inputCommandLen] = '\0';
-                stream.puts(inputCommandBuffer);
                 inputCommandLen = 0;
                 active = true;
             }
@@ -345,7 +344,7 @@
 bool USBSLCAN::processCANMessages() {
     bool active = false;
     
-    size_t bytesAvailable = sizeof(outputPacketBuffer - outputPacketLen);
+    size_t bytesAvailable = sizeof(outputPacketBuffer) - outputPacketLen;
     char* packetTail = &outputPacketBuffer[outputPacketLen];
     
     if (messageQueued) {