From bbe602284414df211d250079cd8fef9890e5bef9 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 26 Feb 2020 23:53:42 -0800 Subject: [PATCH] add AirPlay/BT pause length option - release --- components/display/display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/display/display.c b/components/display/display.c index 689aa8e1..a1cb0e4d 100644 --- a/components/display/display.c +++ b/components/display/display.c @@ -89,7 +89,6 @@ void display_init(char *welcome) { // Detect driver interface if (strstr(config, "I2C") && i2c_system_port != -1) { int address = 0x3C; - int speed = 0; if ((p = strcasestr(config, "address")) != NULL) address = atoi(strchr(p, '=') + 1); @@ -275,8 +274,9 @@ void displayer_metadata(char *artist, char *album, char *title) { strncpy(string, title ? title : "", SCROLLABLE_SIZE); } - // get optional scroll speed + // get optional scroll speed & pause if ((p = strcasestr(displayer.metadata_config, "speed")) != NULL) sscanf(p, "%*[^=]=%d", &displayer.speed); + if ((p = strcasestr(displayer.metadata_config, "pause")) != NULL) sscanf(p, "%*[^=]=%d", &displayer.pause); displayer.offset = 0; utf8_decode(displayer.string);