test

Dependencies:   mbed Watchdog stm32-sensor-base2

Revision:
10:0b7f23df690a
Parent:
9:859bcb293e46
--- a/RS485/RS485.cpp	Thu Jul 30 13:04:10 2020 +0000
+++ b/RS485/RS485.cpp	Wed Aug 26 14:25:05 2020 +0530
@@ -7,7 +7,7 @@
 typedef void (*voidFuncPtr)(void);
 Timer lapse;
     const byte STX = '\4';
-    const byte ETX = '\3';
+    const byte ETX = '\8';
  
 RS485::RS485(PinName tx, PinName rx, PinName dere)
     : BufferedSerial(tx, rx )
@@ -94,10 +94,6 @@
           data[0] = STX;
           break;
  
-        case ETX:   // end of text
-          have_etx = true;
-          break;
- 
         default:
           // wait until packet officially starts
           if (!have_stx)