diff -r 8f2be7aaec00 -r 424d792fea4f src/hp34comm.h --- 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 +#include /***** HP 34970A communication class ***/ @@ -45,7 +45,7 @@ } private: - RawSerial serial; + UnbufferedSerial serial; uint8_t buf[BUF_SIZE]; uint8_t head; CircularBuffer 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);