mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-11-04 00:20:37 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									811e75db4b
								
							
						
					
					
						commit
						ded9fef4b6
					
				@ -10,7 +10,7 @@
 | 
			
		||||
 | 
			
		||||
#include "fu-chunk.h"
 | 
			
		||||
#include "fu-csr-device.h"
 | 
			
		||||
#include "fu-ihex-firmware.h"
 | 
			
		||||
#include "fu-dfu-firmware.h"
 | 
			
		||||
 | 
			
		||||
#include "dfu-common.h"
 | 
			
		||||
 | 
			
		||||
@ -332,7 +332,7 @@ fu_csr_device_prepare_firmware (FuDevice *device,
 | 
			
		||||
				FwupdInstallFlags flags,
 | 
			
		||||
				GError **error)
 | 
			
		||||
{
 | 
			
		||||
	g_autoptr(FuFirmware) firmware = fu_ihex_firmware_new ();
 | 
			
		||||
	g_autoptr(FuFirmware) firmware = fu_dfu_firmware_new ();
 | 
			
		||||
 | 
			
		||||
	/* parse the file */
 | 
			
		||||
	if (!fu_firmware_parse (firmware, fw, flags, error))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user