Browse Source

domoticz: fix idx truncation when reading from settings (#2316)

Co-authored-by: mkozlowski <gitcmt@empeka.pl>
mcspr-patch-1
m-kozlowski 4 years ago
committed by GitHub
parent
commit
f849dc4111
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/domoticz.cpp

+ 1
- 1
code/espurna/domoticz.cpp View File

@ -25,7 +25,7 @@ std::bitset<RelaysMax> _dcz_relay_state;
// Private methods // Private methods
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
unsigned char _domoticzIdx(unsigned char relayID, unsigned char defaultValue = 0) {
unsigned int _domoticzIdx(unsigned char relayID, unsigned int defaultValue = 0) {
return getSetting({"dczRelayIdx", relayID}, defaultValue); return getSetting({"dczRelayIdx", relayID}, defaultValue);
} }


Loading…
Cancel
Save