mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
Stabilizing a few things.
Music plays, httpd responds in a snap, messaging subsystem works, full end-to-end flash erase/flash/configure wifi & hardware/reboot to squeezelite was tested. CMake system works well: it now allows to flash in a single command (assuming esp-idf V4.0 is properly installed on the system) with the standard line: idf.py flash -p <comport> this makes building and flashing the app less confusing for new developers/users wanting to experiment
This commit is contained in:
@@ -110,6 +110,9 @@ typedef struct _progress {
|
||||
} progress_t;
|
||||
|
||||
static progress_t * loc_displayer_get_progress_dft(){
|
||||
if(!display){
|
||||
return;
|
||||
}
|
||||
int start_coord_offset=0;
|
||||
static progress_t def={
|
||||
.border_thickness = 2,
|
||||
@@ -141,6 +144,9 @@ static progress_t * loc_displayer_get_progress_dft(){
|
||||
}
|
||||
static void loc_displayer_progressbar(uint8_t pct){
|
||||
static progress_t * progress_coordinates;
|
||||
if(!display){
|
||||
return;
|
||||
}
|
||||
if(!progress_coordinates) progress_coordinates = loc_displayer_get_progress_dft();
|
||||
int filler_x=progress_coordinates->filler.x1+(int)((float)progress_coordinates->filler.width*(float)pct/(float)100);
|
||||
|
||||
@@ -182,7 +188,10 @@ void sendMessaging(messaging_types type,const char * fmt, ...){
|
||||
}
|
||||
va_end(args);
|
||||
if(type!=MESSAGING_INFO){
|
||||
GDS_TextLine(display, 2, GDS_TEXT_LEFT, GDS_TEXT_CLEAR | GDS_TEXT_UPDATE, msg_str);
|
||||
|
||||
if(display) {
|
||||
GDS_TextLine(display, 2, GDS_TEXT_LEFT, GDS_TEXT_CLEAR | GDS_TEXT_UPDATE, msg_str);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON_AddStringToObject(msg,"ota_dsc",str_or_unknown(msg_str));
|
||||
|
||||
Reference in New Issue
Block a user