Display config UI fixes - release

Add 2 entries as a replacement for the ST77xx driver name, remove SSD1306 default.
This commit is contained in:
Sebastien
2020-10-08 21:09:36 -04:00
parent be1d841039
commit d379858dd2
7 changed files with 12 additions and 15 deletions

View File

@@ -343,7 +343,6 @@ const display_config_t * config_display_get(){
dstruct.drivername = display_conf_get_driver_name(strchr(p, '=') + 1);
}
dstruct.drivername=dstruct.drivername?dstruct.drivername:"SSD1306";
if ((p = strcasestr(config, "width")) != NULL) dstruct.width = atoi(strchr(p, '=') + 1);
if ((p = strcasestr(config, "height")) != NULL) dstruct.height = atoi(strchr(p, '=') + 1);
if ((p = strcasestr(config, "reset")) != NULL) dstruct.RST_pin = atoi(strchr(p, '=') + 1);