mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 12:19:49 +03:00
merge upstream/develop
This commit is contained in:
@@ -888,11 +888,7 @@ int Item::VacomSetHeat(int addr, int8_t val, int8_t cmd) {
|
||||
modbusBusy = 0;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
}
|
||||
int Item::modbusDimmerSet(int addr, uint16_t _reg, int _mask, uint16_t value) {
|
||||
|
||||
if (modbusBusy) {
|
||||
mb_fail(3, addr, value, 0);
|
||||
|
||||
@@ -465,8 +465,8 @@ void onInitialStateInitLAN() {
|
||||
#if defined(ARDUINO_ARCH_AVR) || defined(__SAM3X8E__)||defined(ARDUINO_ARCH_STM32F1)
|
||||
#ifdef W5500_CS_PIN
|
||||
Ethernet.w5500_cspin = W5500_CS_PIN;
|
||||
debugSerial<<F("Use W5500 pin: "));
|
||||
debugSerial<<Ethernet.w5500_cspin);
|
||||
debugSerial<<F("Use W5500 pin: ");
|
||||
debugSerial<<(Ethernet.w5500_cspin);
|
||||
#endif
|
||||
IPAddress ip, dns, gw, mask;
|
||||
int res = 1;
|
||||
@@ -541,8 +541,8 @@ void softRebootFunc(){
|
||||
|
||||
void resetHard() {
|
||||
#ifdef RESET_PIN
|
||||
debugSerial<<F("Reset Arduino with digital pin "));
|
||||
debugSerial<<QUOTE(RESET_PIN));
|
||||
debugSerial<<F("Reset Arduino with digital pin ");
|
||||
debugSerial<<QUOTE(RESET_PIN);
|
||||
delay(500);
|
||||
pinMode(RESET_PIN, OUTPUT);
|
||||
digitalWrite(RESET_PIN,LOW);
|
||||
@@ -1170,7 +1170,7 @@ void printFirmwareVersionAndBuildOptions() {
|
||||
#endif
|
||||
|
||||
#ifdef RESET_PIN
|
||||
debugSerial<<F("\n(+)HARDRESET on pin=")<<F(QUOTE(RESET_PIN);
|
||||
debugSerial<<F("\n(+)HARDRESET on pin=")<<QUOTE(RESET_PIN);
|
||||
#else
|
||||
debugSerial<<F("\n(-)HARDRESET, using soft");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user