mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 22:07:39 +00:00
refactoring
This commit is contained in:
@@ -126,12 +126,9 @@ void update_performance_counters() {
|
|||||||
if ((((chTimeNow()>>10) & 0x01) == 0x01) == last_paint_state)
|
if ((((chTimeNow()>>10) & 0x01) == 0x01) == last_paint_state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
volatile auto idle_thread = chSysGetIdleThread();
|
// Idle thread state is sometimes unuseable
|
||||||
if (chThdGetTicks(idle_thread) > 0x10000000) {
|
if (chThdGetTicks(chSysGetIdleThread()) > 0x10000000)
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
idle_thread = nullptr;
|
|
||||||
|
|
||||||
last_paint_state = !last_paint_state;
|
last_paint_state = !last_paint_state;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user