Skip to content

Commit

Permalink
Fix PCF8574 JSON (arendst#12088)
Browse files Browse the repository at this point in the history
Fix PCF8574 JSON (arendst#12088)
  • Loading branch information
arendst authored and yvesdm3000 committed May 16, 2021
1 parent 75c783d commit 005f26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasmota/xdrv_28_pcf8574.ino
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void Pcf8574Show(bool json)
for (int idx = 0 ; idx < Pcf8574.max_devices ; idx++)
{
uint8_t gpio = Pcf8574Read(idx);
ResponseAppend_P(PSTR(",\"PCF8574%c%d\":{\"D0\":%i,\"D1\":%i,\"D2\":%i,\"D3\":%i,\"D4\":%i,\"D5\":%i,\"D6\":%i,\"D7\":%i"),
ResponseAppend_P(PSTR(",\"PCF8574%c%d\":{\"D0\":%i,\"D1\":%i,\"D2\":%i,\"D3\":%i,\"D4\":%i,\"D5\":%i,\"D6\":%i,\"D7\":%i}"),
IndexSeparator(), idx +1,
(gpio>>0)&1,(gpio>>1)&1,(gpio>>2)&1,(gpio>>3)&1,(gpio>>4)&1,(gpio>>5)&1,(gpio>>6)&1,(gpio>>7)&1);
}
Expand Down

0 comments on commit 005f26e

Please sign in to comment.