Add BE/LE functions.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-12-23 20:38:46 +01:00
parent f509833a3c
commit d530ea6979
3 changed files with 54 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ uint16_t set_res_sw(uint8_t sw1, uint8_t sw2) {
if (sw1 != 0x90) {
res_APDU_size = 0;
}
return make_uint16_t(sw1, sw2);
return make_uint16_t_be(sw1, sw2);
}
void apdu_thread(void) {