mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
led: Rename 'blink' to 'mode'
This commit is contained in:
@@ -219,7 +219,7 @@ int driver_process_usb_packet_ccid(uint8_t itf, uint16_t rx_read) {
|
||||
ccid_status = 0;
|
||||
ccid_write_fast(itf, (const uint8_t *)ccid_resp_fast[itf], (uint16_t)(size_atr + 10));
|
||||
|
||||
led_set_blink(BLINK_MOUNTED);
|
||||
led_set_mode(MODE_MOUNTED);
|
||||
}
|
||||
else if (ccid_header[itf]->bMessageType == CCID_POWER_OFF) {
|
||||
if (ccid_status == 0) {
|
||||
@@ -234,7 +234,7 @@ int driver_process_usb_packet_ccid(uint8_t itf, uint16_t rx_read) {
|
||||
ccid_resp_fast[itf]->abRFU1 = 0;
|
||||
ccid_write_fast(itf, (const uint8_t *)ccid_resp_fast[itf], 10);
|
||||
|
||||
led_set_blink(BLINK_SUSPENDED);
|
||||
led_set_mode(MODE_SUSPENDED);
|
||||
}
|
||||
else if (ccid_header[itf]->bMessageType == CCID_SET_PARAMS ||
|
||||
ccid_header[itf]->bMessageType == CCID_GET_PARAMS ||
|
||||
|
||||
@@ -122,7 +122,7 @@ void card_start(uint8_t itf, void (*func)(void)) {
|
||||
multicore_reset_core1();
|
||||
multicore_launch_core1(func);
|
||||
}
|
||||
led_set_blink(BLINK_MOUNTED);
|
||||
led_set_mode(MODE_MOUNTED);
|
||||
card_locked_itf = itf;
|
||||
card_locked_func = func;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ void card_exit() {
|
||||
mutex_exit(&mutex);
|
||||
#endif
|
||||
}
|
||||
led_set_blink(BLINK_SUSPENDED);
|
||||
led_set_mode(MODE_SUSPENDED);
|
||||
#ifdef ESP_PLATFORM
|
||||
hcore1 = NULL;
|
||||
#endif
|
||||
@@ -187,7 +187,7 @@ int card_status(uint8_t itf) {
|
||||
if (has_m) {
|
||||
if (m == EV_EXEC_FINISHED) {
|
||||
timeout_stop();
|
||||
led_set_blink(BLINK_MOUNTED);
|
||||
led_set_mode(MODE_MOUNTED);
|
||||
return CCID_OK;
|
||||
}
|
||||
#ifndef ENABLE_EMULATION
|
||||
|
||||
Reference in New Issue
Block a user