ums: Dim backlight and change the maintenance order

This commit is contained in:
CTCaer committed 2021-01-04 20:12:26 +02:00
1 parent bf8fd9a33b
commit 9daa14abec
2 files changed
+12 -6

No files matched your search

+6 -6
View File
@@ -1774,16 +1774,16 @@ static inline void _system_maintainance(usbd_gadget_ums_t *ums)
u32 time = get_tmr_ms();
if (timer_dram < time)
{
minerva_periodic_training();
timer_dram = get_tmr_ms() + 100;
}
else if (timer_status_bar < time)
if (timer_status_bar < time)
{
ums->system_maintenance(true);
timer_status_bar = get_tmr_ms() + 30000;
}
else if (timer_dram < time)
{
minerva_periodic_training();
timer_dram = get_tmr_ms() + EMC_PERIODIC_TRAIN_MS;
}
}
int usb_device_gadget_ums(usb_ctxt_t *usbs)