distro name

This commit is contained in:
2026-09-01 21:22:44 +02:00
parent 739c62effa
commit 3ecdc57309
3 changed files with 19 additions and 3 deletions

View File

@@ -102,9 +102,10 @@ static void *display_thread(void *arg) {
lcd_set_backlight(&lcd, true);
lcd_set_contrast(&lcd, lcd_contrast);
lcd_write_buf(&lcd, 0, 14, "linuxSmartie");
lcd_writef(&lcd, 0, 2, "git hash:");
lcd_writef(&lcd, 0, 3, "%s", GIT_HASH);
char name[64], ver[64];
sys_get_distro(name, ver);
lcd_writef(&lcd, 0, 0, "%s %s", name, ver);
lcd_writef(&lcd, 0, 3, "linuxSmartie %s", GIT_HASH);
lcd_flush_buf(&lcd);
lcd_clear_buf(&lcd);
struct timespec next;