@@ -38,13 +38,13 @@ static void gui_task(void *pvParameter)
3838 ESP_LOGI (TAG , "started." );
3939
4040 snprintf (text_buff , sizeof (text_buff ), "PWM:" );
41- gdispGFillStringBox (gui_gdisp , 5 , 2 , 90 , 32 , text_buff , gui_font , Yellow , Black , justifyLeft );
41+ gdispGFillStringBox (gui_gdisp , 2 , 2 , 93 , 32 , text_buff , gui_font , Yellow , Black , justifyLeft );
4242
4343 snprintf (text_buff , sizeof (text_buff ), "RPM:" );
44- gdispGFillStringBox (gui_gdisp , 5 , 34 , 90 , 32 , text_buff , gui_font , Cyan , Black , justifyLeft );
44+ gdispGFillStringBox (gui_gdisp , 2 , 34 , 93 , 32 , text_buff , gui_font , Cyan , Black , justifyLeft );
4545
4646 snprintf (text_buff , sizeof (text_buff ), "PWR:" );
47- gdispGFillStringBox (gui_gdisp , 5 , 67 , 90 , 32 , text_buff , gui_font , Magenta , Black , justifyLeft );
47+ gdispGFillStringBox (gui_gdisp , 2 , 67 , 93 , 32 , text_buff , gui_font , Magenta , Black , justifyLeft );
4848
4949 while (1 ) {
5050 if (gui_mode ) {
@@ -53,19 +53,19 @@ static void gui_task(void *pvParameter)
5353 gdispGSetBacklight (gui_gdisp , 255 );
5454
5555 snprintf (text_buff , sizeof (text_buff ), "%u" , fan_get_duty ());
56- gdispGFillStringBox (gui_gdisp , 95 , 2 , 140 , 32 , text_buff , gui_font , Yellow , Black , justifyRight );
56+ gdispGFillStringBox (gui_gdisp , 95 , 2 , 143 , 32 , text_buff , gui_font , Yellow , Black , justifyRight );
5757
5858 snprintf (text_buff , sizeof (text_buff ), "%u" , fan_get_rpm ());
59- gdispGFillStringBox (gui_gdisp , 95 , 34 , 140 , 32 , text_buff , gui_font , Cyan , Black , justifyRight );
59+ gdispGFillStringBox (gui_gdisp , 95 , 34 , 143 , 32 , text_buff , gui_font , Cyan , Black , justifyRight );
6060
6161 snprintf (text_buff , sizeof (text_buff ), "%s" , pwr_get_mode_str ());
62- gdispGFillStringBox (gui_gdisp , 95 , 67 , 140 , 32 , text_buff , gui_font , Magenta , Black , justifyRight );
62+ gdispGFillStringBox (gui_gdisp , 95 , 67 , 143 , 32 , text_buff , gui_font , Magenta , Black , justifyRight );
6363
6464 snprintf (text_buff , sizeof (text_buff ), "%5.2fV" , ina219_get_bus_voltage_v ());
65- gdispGFillStringBox (gui_gdisp , 5 , 100 , 115 , 32 , text_buff , gui_font , Lime , Black , justifyRight );
65+ gdispGFillStringBox (gui_gdisp , 2 , 100 , 118 , 32 , text_buff , gui_font , Lime , Black , justifyRight );
6666
67- snprintf (text_buff , sizeof (text_buff ), "%4.2fA " , ina219_get_current_ma () / 1000.0 );
68- gdispGFillStringBox (gui_gdisp , 120 , 100 , 115 , 32 , text_buff , gui_font , Orange , Black , justifyRight );
67+ snprintf (text_buff , sizeof (text_buff ), "%5.3fA " , ina219_get_current_ma () / 1000.0 );
68+ gdispGFillStringBox (gui_gdisp , 120 , 100 , 118 , 32 , text_buff , gui_font , Orange , Black , justifyRight );
6969
7070 gdispGFlush (gui_gdisp );
7171
0 commit comments