Skip to content

Commit

Permalink
Merge pull request arendst#4720 from chaosmaster/patch-1
Browse files Browse the repository at this point in the history
PS_16_DZ: fix broken if-statement
  • Loading branch information
arendst authored Dec 24, 2018
2 parents 98d9a78 + e8e5bf3 commit b4f2eb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sonoff/xdrv_19_ps16dz_dimmer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ void PS16DZSerialInput(void)
memset(ps16dz_rx_buffer, 0, PS16DZ_BUFFER_SIZE);
ps16dz_byte_counter = 0;
}
if (ps16dz_byte_counter || (!ps16dz_byte_counter && serial_in_byte == 'A'));
ps16dz_rx_buffer[ps16dz_byte_counter++] = serial_in_byte;
if (ps16dz_byte_counter || (!ps16dz_byte_counter && serial_in_byte == 'A')) {
ps16dz_rx_buffer[ps16dz_byte_counter++] = serial_in_byte;
}
}
else {
ps16dz_rx_buffer[ps16dz_byte_counter++] = 0x00;
Expand Down

0 comments on commit b4f2eb2

Please sign in to comment.