Merge remote-tracking branch 'upstream/main' into mdev
This commit is contained in:
@@ -385,9 +385,9 @@ class UsermodTemperature : public Usermod {
|
||||
void appendConfigData()
|
||||
{
|
||||
oappend(SET_F("addHB('Temperature');")); // WLEDMM
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr"));
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr")); //WLEDMM use literals
|
||||
oappend(SET_F("',1,'<i>(if no Vcc connected)</i>');")); // 0 is field type, 1 is actual field
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr-pin"));
|
||||
oappend(SET_F("addInfo('Temperature:parasite-pwr-pin")); //WLEDMM use literals
|
||||
oappend(SET_F("',1,'<i>(for external MOSFET)</i>');")); // 0 is field type, 1 is actual field
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ class MultiRelay : public Usermod {
|
||||
*/
|
||||
MultiRelay() {
|
||||
const int8_t defPins[] = {MULTI_RELAY_PINS};
|
||||
for (int i=0; i<MULTI_RELAY_MAX_RELAYS; i++) {
|
||||
for (size_t i=0; i<MULTI_RELAY_MAX_RELAYS; i++) {
|
||||
_relay[i].pin = i<sizeof(defPins) ? defPins[i] : -1;
|
||||
_relay[i].delay = 0;
|
||||
_relay[i].mode = false;
|
||||
|
||||
Reference in New Issue
Block a user