Add PHY OPTS.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-06-19 22:01:15 +02:00
parent 07079b6ba1
commit 54cdbfc22c
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3
2 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit a5f19a135673d5bd4edb9f10cea65758a3e7e7d5
Subproject commit d4582508879bb7d6022bcf0dd03f823e29c5db30

View file

@ -227,6 +227,12 @@ int cmd_extras() {
}
tmp[P2(apdu)] = apdu.data[0];
}
else if (P2(apdu) == PHY_OPTS) {
if (apdu.nc != 2) {
return SW_WRONG_LENGTH();
}
memcpy(tmp + PHY_OPTS, apdu.data, 2);
}
else {
return SW_INCORRECT_P1P2();
}