Fix LEDs in ptdump command
This commit is contained in:
parent
5ae31a1705
commit
85fe0f6749
@ -274,8 +274,11 @@ static shellmatta_retCode_t shell_cmd_pt1000_res_loop(const shellmatta_handle_t
|
|||||||
shellmatta_printf(handle, "\x1b[1A\x1b[150D\x1b[K");
|
shellmatta_printf(handle, "\x1b[1A\x1b[150D\x1b[K");
|
||||||
shell_cmd_pt1000_res(handle, "", 0UL);
|
shell_cmd_pt1000_res(handle, "", 0UL);
|
||||||
|
|
||||||
led_set(0, led_status);
|
led_set(1, led_status);
|
||||||
led_set(1, !led_status);
|
if (adc_pt1000_check_error() & ADC_PT1000_WATCHDOG_ERROR) {
|
||||||
|
led_set(0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
led_status ^= 0x1;
|
led_status ^= 0x1;
|
||||||
|
|
||||||
systick_wait_ms(150);
|
systick_wait_ms(150);
|
||||||
|
Loading…
Reference in New Issue
Block a user