Skip to content

Commit

Permalink
fixed missing zero when showing IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
mcer12 committed Jun 12, 2021
1 parent 1a9558f commit e9a835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/FLORA_FIRMWARE/VFD_fns.ino
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void showIP(int delay_ms) {
} else {
setDigit(3, (ip_addr[3] / 100) % 10);
}
if ((ip_addr[3] / 10) % 10 == 0) {
if ((ip_addr[3] / 10) % 10 == 0 && (ip_addr[3] / 100) % 10 == 0) {
blankDigit(4);
} else {
setDigit(4, (ip_addr[3] / 10) % 10);
Expand Down

0 comments on commit e9a835c

Please sign in to comment.