pi_clock

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

commit c824c3201bfeb66f6f47a6364a679d9d816a222b
parent 345c0981a9aa056b77434547b2b6198aa40802d5
Author: Paco Esteban <paco@e1e0.net>
Date:   Fri,  6 Nov 2020 09:21:26 +0100

alternate TZ does not need "dark time"

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

diff --git a/clock.c b/clock.c @@ -41,7 +41,7 @@ #define DEF_BL_AFTER 7 #define TAG_MAX_LEN 7 -#define PIC_VERSION "v0.6.0" +#define PIC_VERSION "v0.6.1" lcd_i2c_t *init_lcd(void); char * setmonth(int); @@ -124,7 +124,9 @@ main(int argc, char *argv[]) tm = localtime(&t); if (tm->tm_hour >= bl_before && tm->tm_hour <= bl_after) { - if (backlight_status && !tmp_on_cycles) { + if (backlight_status + && !tmp_on_cycles + && (NULL == getenv("TZ"))) { LCD_I2C_BACKLIGHT_OFF(lcd); backlight_status = 0; }