Update stmlib, remove return value from UI::DoEvents

This commit is contained in:
Jan-Henrik 2020-02-23 02:26:07 +01:00
parent 433ff597ab
commit 6e04536dd8
4 changed files with 10 additions and 14 deletions

View file

@ -24,14 +24,14 @@
# See http://creativecommons.org/licenses/MIT/ for more information. # See http://creativecommons.org/licenses/MIT/ for more information.
# System specifications # System specifications
F_CRYSTAL = 8000000L F_CRYSTAL = 8000000L
F_CPU = 72000000L F_CPU = 72000000L
SYSCLOCK = SYSCLK_FREQ_72MHz SYSCLOCK = SYSCLK_FREQ_72MHz
FAMILY = f37x FAMILY = f37x
# USB = enabled # USB = enabled
U8G2 = enabled U8G2 = enabled
APPLICATION_LARGE = TRUE APPLICATION_LARGE = TRUE
BOOTLOADER = midi2cv_bootloader BOOTLOADER = midi2cv_bootloader
# Preferred upload command # Preferred upload command
UPLOAD_COMMAND = upload_combo_jtag UPLOAD_COMMAND = upload_combo_jtag
@ -46,7 +46,5 @@ PACKAGES = midi2cv \
stmlib/system stmlib/system
RESOURCES = midi2cv/resources RESOURCES = midi2cv/resources
TOOLCHAIN_PATH ?= /usr/local/arm-4.8.3/
include stmlib/makefile.inc include stmlib/makefile.inc

View file

@ -61,7 +61,7 @@ void UI::Flush()
display.Flush(); display.Flush();
} }
bool UI::DoEvents() void UI::DoEvents()
{ {
bool refresh_display = false; bool refresh_display = false;
while (input_queue.available()) { while (input_queue.available()) {
@ -84,8 +84,6 @@ bool UI::DoEvents()
input_queue.Touch(); input_queue.Touch();
Draw(); Draw();
} }
return refresh_display;
} }
void UI::OnClick() void UI::OnClick()

View file

@ -20,7 +20,7 @@ class UI {
void Init(); void Init();
void Poll(); void Poll();
void Flush(); void Flush();
bool DoEvents(); void DoEvents();
private: private:
Menu_t current_menu; Menu_t current_menu;

2
stmlib

@ -1 +1 @@
Subproject commit e14f6eb13096d6ed648d140e730c541ba4fd702d Subproject commit 0f1dc19f23d34b6f282558794bc089a147015d4f