|
|
|
@ -133,7 +133,7 @@ static THD_FUNCTION(Thread1, arg)
|
|
|
|
ui_process();
|
|
|
|
ui_process();
|
|
|
|
|
|
|
|
|
|
|
|
while (1) {
|
|
|
|
while (1) {
|
|
|
|
START_PROFILE
|
|
|
|
// START_PROFILE
|
|
|
|
if (sweep_mode&(SWEEP_ENABLE|SWEEP_ONCE)) {
|
|
|
|
if (sweep_mode&(SWEEP_ENABLE|SWEEP_ONCE)) {
|
|
|
|
// if (dirty)
|
|
|
|
// if (dirty)
|
|
|
|
completed = sweep(true);
|
|
|
|
completed = sweep(true);
|
|
|
|
@ -152,7 +152,7 @@ static THD_FUNCTION(Thread1, arg)
|
|
|
|
// if (setting.mode != -1)
|
|
|
|
// if (setting.mode != -1)
|
|
|
|
__WFI();
|
|
|
|
__WFI();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
STOP_PROFILE
|
|
|
|
// STOP_PROFILE
|
|
|
|
// Run Shell command in sweep thread
|
|
|
|
// Run Shell command in sweep thread
|
|
|
|
if (shell_function) {
|
|
|
|
if (shell_function) {
|
|
|
|
operation_requested = OP_NONE; // otherwise commands will be aborted
|
|
|
|
operation_requested = OP_NONE; // otherwise commands will be aborted
|
|
|
|
|