Fix LEDs in ptdump command

This commit is contained in:
Mario Hüttel 2020-04-26 19:52:48 +02:00
parent 5ae31a1705
commit 85fe0f6749

View File

@ -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");
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;
systick_wait_ms(150);