mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 05:27:01 +03:00
fix CLI structure
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user