mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-04 07:24:20 +01:00
Fix rare bug...
This commit is contained in:
@@ -182,7 +182,7 @@ void relaySetupAPI() {
|
||||
|
||||
apiRegister(url, key,
|
||||
[relayID](char * buffer, size_t len) {
|
||||
snprintf(buffer, "%d", len, relayStatus(relayID) ? 1 : 0);
|
||||
snprintf(buffer, len, "%d", relayStatus(relayID) ? 1 : 0);
|
||||
},
|
||||
[relayID](const char * payload) {
|
||||
unsigned int value = payload[0] - '0';
|
||||
|
||||
Reference in New Issue
Block a user