src/hp34comm.h

changeset 28
424d792fea4f
parent 21
9ffa9d727d80
child 37
07e8ca2bdf6d
--- a/src/hp34comm.h	Thu Oct 15 01:12:31 2020 +0200
+++ b/src/hp34comm.h	Fri Oct 16 22:08:47 2020 +0200
@@ -1,8 +1,8 @@
 #ifndef HP34COMM_H
 #define HP34COMM_H
 
-#include "mbed.h"
-#include "CircularBuffer.h"
+#include <mbed.h>
+#include <CircularBuffer.h>
 
 /***** HP 34970A communication class ***/
 
@@ -45,7 +45,7 @@
   }
 
  private:
-  RawSerial serial;
+  UnbufferedSerial serial;
   uint8_t buf[BUF_SIZE];
   uint8_t head;
   CircularBuffer<CMD, 32> cmdbuf;
@@ -103,7 +103,7 @@
   state_t do_state_payload_size(uint8_t c);
   state_t do_state_payload(uint8_t c);
   state_t do_state_sending(uint8_t c=0x00);
-  state_t do_state_eot(uint8_t c=0x00);
+  state_t do_state_eot(uint8_t c=0x55);
 
   void send_ack(uint8_t c);
 

mercurial