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
2 changed files with 7 additions and 1 deletions

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();
}