csr: Parse the firmware as a DFU file

This was changed to Intel hex in 7afd7cba0d,
probbaly due to a copy-paste mistake. Change it back to DFU.

Fixes https://github.com/fwupd/fwupd/issues/1890
This commit is contained in:
Richard Hughes 2020-03-22 15:58:10 +00:00 committed by Mario Limonciello
parent 811e75db4b
commit ded9fef4b6

View File

@ -10,7 +10,7 @@
#include "fu-chunk.h" #include "fu-chunk.h"
#include "fu-csr-device.h" #include "fu-csr-device.h"
#include "fu-ihex-firmware.h" #include "fu-dfu-firmware.h"
#include "dfu-common.h" #include "dfu-common.h"
@ -332,7 +332,7 @@ fu_csr_device_prepare_firmware (FuDevice *device,
FwupdInstallFlags flags, FwupdInstallFlags flags,
GError **error) GError **error)
{ {
g_autoptr(FuFirmware) firmware = fu_ihex_firmware_new (); g_autoptr(FuFirmware) firmware = fu_dfu_firmware_new ();
/* parse the file */ /* parse the file */
if (!fu_firmware_parse (firmware, fw, flags, error)) if (!fu_firmware_parse (firmware, fw, flags, error))