Use more uint16 funcs.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-12-23 21:25:46 +01:00
parent 1d20321d69
commit 1f805b1df2
8 changed files with 23 additions and 45 deletions

View File

@@ -411,7 +411,7 @@ bool check_user_presence() {
uint32_t get_sign_counter() {
uint8_t *caddr = file_get_data(ef_counter);
return (*caddr) | (*(caddr + 1) << 8) | (*(caddr + 2) << 16) | (*(caddr + 3) << 24);
return get_uint32_t_le(caddr);
}
uint8_t get_opts() {