cli,firmware: fix reporting fastboot AT command
The update method is a bitmask, so check for the flag.
This commit is contained in:
@@ -159,13 +159,8 @@ print_firmware_status (void)
|
|||||||
version = mm_firmware_update_settings_get_version (update_settings);
|
version = mm_firmware_update_settings_get_version (update_settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (m) {
|
if (m & MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT)
|
||||||
case MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT:
|
|
||||||
fastboot_at = mm_firmware_update_settings_get_fastboot_at (update_settings);
|
fastboot_at = mm_firmware_update_settings_get_fastboot_at (update_settings);
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* There's not much to print in this status info, and if the modem
|
/* There's not much to print in this status info, and if the modem
|
||||||
|
Reference in New Issue
Block a user