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