make led colour depend on credential
This commit is contained in:
@@ -703,7 +703,11 @@ static int wait_for_button_release(uint32_t wait)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ctap_user_presence_test(uint32_t up_delay)
|
||||
int ctap_user_presence_test(uint32_t up_delay)
|
||||
{
|
||||
return ctap_user_presence_test_colour(up_delay, 0);
|
||||
}
|
||||
int ctap_user_presence_test_colour(uint32_t up_delay, uint32_t button_confirm_colour)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -741,8 +745,7 @@ int ctap_user_presence_test(uint32_t up_delay)
|
||||
}
|
||||
|
||||
// Set LED status and wait.
|
||||
led_rgb(0xff3520);
|
||||
|
||||
led_rgb(button_confirm_colour==0?0xff3520:button_confirm_colour);
|
||||
// Block and wait for some time.
|
||||
ret = wait_for_button_activate(up_delay);
|
||||
if (ret) return ret;
|
||||
|
Reference in New Issue
Block a user