Using file_has_data() to check contents.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-01-13 18:07:50 +01:00
parent 723011078c
commit 5419ff74ee
7 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ int cmd_reset_retry() {
if (!file_sopin || !file_pin1) {
return SW_FILE_NOT_FOUND();
}
if (!file_sopin->data) {
if (!file_has_data(file_sopin)) {
return SW_REFERENCE_NOT_FOUND();
}
uint16_t opts = get_device_options();