mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
fix display smi2
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
"pinSDA": 0,
|
||||
"i2cFreq": 100000,
|
||||
"wg": "group1",
|
||||
"debugTrace": 1,
|
||||
"debugTraceMsgTlgrm": 1,
|
||||
"udps": 1,
|
||||
"settings_": ""
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
"pinSDA": 0,
|
||||
"i2cFreq": 100000,
|
||||
"wg": "group1",
|
||||
"debugTrace": 1
|
||||
"debugTraceMsgTlgrm": 1
|
||||
},
|
||||
"projectProp": {
|
||||
"platformio": {
|
||||
|
||||
@@ -221,7 +221,7 @@ void setup() {
|
||||
stopErrorMarker(SETUPINET_ERRORMARKER);
|
||||
|
||||
bool postMsgTelegram;
|
||||
if (!jsonRead(settingsFlashJson, "debugTrace", postMsgTelegram, false)) postMsgTelegram = 1;
|
||||
if (!jsonRead(settingsFlashJson, "debugTraceMsgTlgrm", postMsgTelegram, false)) postMsgTelegram = 1;
|
||||
sendDebugTraceAndFreeMemory(postMsgTelegram);
|
||||
|
||||
initErrorMarker(SETUPLAST_ERRORMARKER);
|
||||
|
||||
@@ -45,7 +45,7 @@ class Smi2_m : public IoTItem {
|
||||
// Пакет,SLAVE адрес,функция модбус,адрес регистра,количесво запрашиваемых регистров,локальный адрес регистра.
|
||||
// Пакет,SLAVE адрес,функция модбус,адрес регистра,данные,локальный адрес регистра.
|
||||
smi->modbus_construct(&packets[PACKET1], 1, PRESET_MULTIPLE_REGISTERS, 4200, 1, 0);
|
||||
smi->modbus_configure(&Serial, _baud, SERIAL_8N1, _rx, _tx, _pin, packets, TOTAL_NO_OF_PACKETS, regs);
|
||||
smi->modbus_configure((HardwareSerial*)&Serial, _baud, SERIAL_8N1, _rx, _tx, _pin, &packets[PACKET1], (uint)TOTAL_NO_OF_PACKETS, ®s[0]);
|
||||
|
||||
jsonRead(parameters, "id2show", _show);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user