fix CLI structure

This commit is contained in:
philippe44
2022-02-26 17:53:01 -08:00
parent 23a5f7fbe4
commit 54d7e222d0
2 changed files with 2 additions and 2 deletions

View File

@@ -287,7 +287,7 @@ struct GDS_Device* ST77xx_Detect(char *Driver, struct GDS_Device* Device) {
struct PrivateSpace* Private = (struct PrivateSpace*) Device->Private; struct PrivateSpace* Private = (struct PrivateSpace*) Device->Private;
Private->Model = Model; Private->Model = Model;
if (Model == ST7735) { if (Model == ST7735) {
sscanf(Driver, "%*[^:]%*[^x]%*[^=]=%hu", &Private->Offset.Height); sscanf(Driver, "%*[^:]%*[^x]%*[^=]=%hu", &Private->Offset.Height);
sscanf(Driver, "%*[^:]%*[^y]%*[^=]=%hu", &Private->Offset.Width); sscanf(Driver, "%*[^:]%*[^y]%*[^=]=%hu", &Private->Offset.Width);

View File

@@ -490,7 +490,7 @@ const display_config_t * config_display_get(){
dstruct.hflip= strcasestr(config, "HFlip") ? true : false; dstruct.hflip= strcasestr(config, "HFlip") ? true : false;
dstruct.vflip= strcasestr(config, "VFlip") ? true : false; dstruct.vflip= strcasestr(config, "VFlip") ? true : false;
dstruct.rotate= strcasestr(config, "rotate") ? true : false; dstruct.rotate= strcasestr(config, "rotate") ? true : false;
dstruct.rotate= strcasestr(config, "invert") ? true : false; dstruct.invert= strcasestr(config, "invert") ? true : false;
return &dstruct; return &dstruct;
} }