mbed trace

This commit is contained in:
Beslan
2022-01-25 06:48:12 +03:00
parent 4aba0072c3
commit bb39f6b11c
3 changed files with 92 additions and 92 deletions

View File

@@ -23,8 +23,8 @@
//#define MB_STATIC_FRAME 1
class ModbusRTU : public Modbus {
protected:
CircularBuffer<char, 200> RX_RingBuff;
private:
CircularBuffer<char, 200U> RX_RingBuff;
UnbufferedSerial *_port;
DigitalOut *_txPin;
@@ -47,7 +47,7 @@ protected:
void *_data = nullptr;
uint8_t *_sentFrame = nullptr;
TAddress _sentReg = COIL(0);
uint16_t maxRegs = 0x007D;
uint16_t maxRegs = 0x007DU;
#ifdef ESP32
portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
#endif