From 153374e014861514c6c1f654b6ba5d86537f01a3 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 11 Oct 2017 10:57:17 +0100 Subject: [PATCH] dfu: Use 0x0101 as an alias for 0x0110 If read the specification correctly it's supposed to be 0x0110 i.e. 1.10, rather than 1.01 -- just work around it as it seems a common enough mistake. --- plugins/dfu/dfu-device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/dfu/dfu-device.c b/plugins/dfu/dfu-device.c index 340a54db0..b4eb98309 100644 --- a/plugins/dfu/dfu-device.c +++ b/plugins/dfu/dfu-device.c @@ -307,6 +307,10 @@ dfu_device_parse_iface_data (DfuDevice *device, GBytes *iface_data) priv->version == DFU_VERSION_DFU_1_1) { g_debug ("basic DFU, no DfuSe support"); priv->dfuse_supported = FALSE; + } else if (priv->version == 0x0101) { + g_debug ("basic DFU 1.1 assumed, no DfuSe support"); + priv->version = DFU_VERSION_DFU_1_1; + priv->dfuse_supported = FALSE; } else if (priv->version == DFU_VERSION_DFUSE) { g_debug ("DfuSe support"); priv->dfuse_supported = TRUE;