drivers: modem: hl7800: fix file open in fw update
File open function for firmware update requires a flags parameter to be passed in. Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
parent
705e1a4610
commit
e36fc53fa6
1 changed files with 1 additions and 1 deletions
|
@ -4652,7 +4652,7 @@ int32_t mdm_hl7800_update_fw(char *file_path)
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = fs_open(&ictx.fw_update_file, file_path);
|
ret = fs_open(&ictx.fw_update_file, file_path, FS_O_READ);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
LOG_ERR("%s open err: %d", log_strdup(file_path), ret);
|
LOG_ERR("%s open err: %d", log_strdup(file_path), ret);
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue