If an applet is not selected, it returns NOT_FOUND on every command.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-08-18 12:25:40 +02:00
parent e84258c434
commit a36a89cc95
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -40,7 +40,7 @@ int process_apdu() {
if (current_app && current_app->process_apdu) {
return current_app->process_apdu();
}
return set_res_sw(0x6D, 0x00);
return set_res_sw(0x6a, 0x82);
}
size_t apdu_process(uint8_t itf, const uint8_t *buffer, size_t buffer_size) {