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.
Diff: slcan.cpp
- 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) {