mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 20:29:50 +03:00
modbus merge
This commit is contained in:
@@ -888,7 +888,11 @@ int Item::VacomSetHeat(int addr, int8_t val, int8_t cmd) {
|
||||
modbusBusy = 0;
|
||||
}
|
||||
|
||||
int Item::modbusDimmerSet(int addr, uint16_t _reg, int _mask, uint16_t value) {
|
||||
int Item::modbusDimmerSet(int addr, uint16_t _reg, int _regType, int _mask, uint16_t value) {
|
||||
|
||||
if (_regType != MODBUS_COIL_REG_TYPE || _regType != MODBUS_HOLDING_REG_TYPE) {
|
||||
|
||||
}
|
||||
|
||||
if (modbusBusy) {
|
||||
mb_fail(3, addr, value, 0);
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
; http://docs.platformio.org/page/projectconf.html
|
||||
[platformio]
|
||||
src_dir = lighthub
|
||||
;env_default =
|
||||
; megaatmega2560
|
||||
env_default =
|
||||
megaatmega2560
|
||||
; megaatmega2560-net
|
||||
; due
|
||||
; esp8266
|
||||
|
||||
Reference in New Issue
Block a user