mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Fix invalid C++ in eModbus (0xff in a char[])
This commit is contained in:
parent
15ddc87afa
commit
b2e9515d44
2 changed files with 2 additions and 2 deletions
|
@ -440,7 +440,7 @@ ModbusMessage RTUutils::receive(uint8_t caller, Stream& serial, uint32_t timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lower 7 bit ASCII characters - all invalid are set to 0xFF
|
// Lower 7 bit ASCII characters - all invalid are set to 0xFF
|
||||||
const char RTUutils::ASCIIread[] = {
|
const uint8_t RTUutils::ASCIIread[] = {
|
||||||
/* 00-07 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
/* 00-07 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||||
/* 08-0F */ 0xFF, 0xFF, 0xF2, 0xFF, 0xFF, 0xF1, 0xFF, 0xFF, // LF + CR
|
/* 08-0F */ 0xFF, 0xFF, 0xF2, 0xFF, 0xFF, 0xF1, 0xFF, 0xFF, // LF + CR
|
||||||
/* 10-17 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
/* 10-17 */ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||||
|
|
|
@ -60,7 +60,7 @@ static void prepareHardwareSerial(HardwareSerial& s, uint16_t bufferSize = 260)
|
||||||
protected:
|
protected:
|
||||||
// Printable characters for ASCII protocol: 012345678ABCDEF
|
// Printable characters for ASCII protocol: 012345678ABCDEF
|
||||||
static const char ASCIIwrite[];
|
static const char ASCIIwrite[];
|
||||||
static const char ASCIIread[];
|
static const uint8_t ASCIIread[];
|
||||||
|
|
||||||
RTUutils() = delete;
|
RTUutils() = delete;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue