pi_clock

Crude and unpolished clock for Raspberry Pi
git clone https://git.e1e0.net/pi_clock.git
Log | Files | Refs | README | LICENSE

commit 72bead5fae6596d42aab951dd85d624a7c9192ec
parent 6526af117c202076fb25abb245535137389b0ec2
Author: Paco Esteban <paco@e1e0.net>
Date:   Sat,  1 Aug 2020 19:21:04 +0200

fix errx calls with no arguments

Diffstat:
Mclock.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clock.c b/clock.c @@ -150,7 +150,7 @@ main(int argc, char *argv[]) } if (print_line_lcd(lcd, 0, linebuff) == -1) - errx(1, "cannot print line0: %s\n"); + err(1, "cannot print line0\n"); setwday(str_wday, tm->tm_wday); @@ -159,7 +159,7 @@ main(int argc, char *argv[]) str_wday, str_month, tm->tm_mday, 1900+tm->tm_year); if (print_line_lcd(lcd, 1, linebuff) == -1) - errx(1, "cannot print line1: %s\n"); + err(1, "cannot print line1\n"); if (digitalRead(BUTTON1) == LOW) { if (backlight_status) {