Skip to content

Commit dcc5c5b

Browse files
committed
Update subproject commit and adjust platformio.ini default_envs; fix text buffer usage in main loop
2 parents a1b1a25 + 3c17e69 commit dcc5c5b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#default_envs = esp32-8048S050C
3838
#default_envs = esp32-8048S050N
3939
#default_envs = esp32-8048S050R
40-
default_envs = esp32-8048S070C
40+
#default_envs = esp32-8048S070C
4141
#default_envs = esp32-8048S070N
4242
#default_envs = esp32-8048S070R
4343
#default_envs = esp32-8048S550C

src/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ void loop()
5353
{
5454
next_millis = now + 500;
5555

56-
char text_buffer[32];
56+
char text_buffer[32];
5757
sprintf(text_buffer, "%lu", now);
5858
lv_label_set_text(objects.milliseconds_value, text_buffer);
59+
lv_label_set_text(objects.milliseconds_value, text_buffer);
5960
#ifdef BOARD_HAS_RGB_LED
6061
auto const rgb = (now / 2000) % 8;
6162
smartdisplay_led_set_rgb(rgb & 0x01, rgb & 0x02, rgb & 0x04);
@@ -65,6 +66,7 @@ void loop()
6566
auto cdr = analogReadMilliVolts(CDS);
6667
sprintf(text_buffer, "%d", cdr);
6768
lv_label_set_text(objects.cdr_value, text_buffer);
69+
lv_label_set_text(objects.cdr_value, text_buffer);
6870
#endif
6971
}
7072

@@ -75,4 +77,4 @@ void loop()
7577
lv_timer_handler();
7678
// ui for eez
7779
ui_tick();
78-
}
80+
}

0 commit comments

Comments
 (0)