@@ -129,8 +129,10 @@ export class FirmwareService {
129129 }
130130
131131 if ( this . selectedFirmwareId === 'auto' ) {
132+ console . log ( 'Auto-detecting firmware...' ) ;
132133 return this . downloadAutoDetectedFirmware ( ) ;
133134 } else {
135+ console . log ( 'FirmwareService: Downloading firmware for:' , this . selectedFirmwareId ) ;
134136 return this . downloadSpecificFirmware ( this . selectedFirmwareId ) ;
135137 }
136138 }
@@ -158,6 +160,8 @@ export class FirmwareService {
158160
159161 // TODO: This is where we can add our logic of fetching from GitHub
160162 private async downloadSpecificFirmware ( firmwareId : string ) : Promise < string > {
163+
164+ console . log ( "Downloading firmware for:" , firmwareId ) ;
161165 const selectedFirmware = this . firmwareOptions [ firmwareId ]
162166 if ( ! selectedFirmware || ! selectedFirmware . url ) {
163167 throw new Error ( `Invalid firmware selection or no URL for: ${ firmwareId } ` ) ;
@@ -170,10 +174,12 @@ export class FirmwareService {
170174 }
171175 } ) ;
172176
173- if ( ! result . ok ) {
174- console . log ( "Error fetching firmware:" , result . status , result . statusText ) ;
175- throw new Error ( `Failed to fetch firmware: ${ result . status } ${ result . statusText } ` ) ;
176- }
177+ console . log ( 'Firmware fetch result:' , result ) ;
178+
179+ // if (!result.ok) {
180+ // console.log("Error fetching firmware:", result.status, result.statusText);
181+ // throw new Error(`Failed to fetch firmware: ${result.status} ${result.statusText}`);
182+ // }
177183
178184 this . firmwareBlob = await result . blob ( ) ;
179185 const uint8Array = new Uint8Array ( await this . firmwareBlob . arrayBuffer ( ) ) ;
0 commit comments