mbed trace
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user