aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-modem-firmware.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-01-12 16:07:18 +0100
committerAleksander Morgado <aleksander@aleksander.es>2019-01-12 16:09:24 +0100
commit0f588888080140f35bf67991af2dc20ac612d1a0 (patch)
tree3ec4f35175ecbe8a9a8031131c8786cb96148260 /cli/mmcli-modem-firmware.c
parent3ba89881cc19ff94860c12909acd3cdc01ece7fc (diff)
cli,firmware: fix reporting fastboot AT command
The update method is a bitmask, so check for the flag.
Diffstat (limited to 'cli/mmcli-modem-firmware.c')
-rw-r--r--cli/mmcli-modem-firmware.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/mmcli-modem-firmware.c b/cli/mmcli-modem-firmware.c
index 74fa8f1a..48d08628 100644
--- a/cli/mmcli-modem-firmware.c
+++ b/cli/mmcli-modem-firmware.c
@@ -159,13 +159,8 @@ print_firmware_status (void)
version = mm_firmware_update_settings_get_version (update_settings);
}
- switch (m) {
- case MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT:
+ if (m & MM_MODEM_FIRMWARE_UPDATE_METHOD_FASTBOOT)
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