@@ -129,8 +129,10 @@ export class FirmwareService {
129
129
}
130
130
131
131
if ( this . selectedFirmwareId === 'auto' ) {
132
+ console . log ( 'Auto-detecting firmware...' ) ;
132
133
return this . downloadAutoDetectedFirmware ( ) ;
133
134
} else {
135
+ console . log ( 'FirmwareService: Downloading firmware for:' , this . selectedFirmwareId ) ;
134
136
return this . downloadSpecificFirmware ( this . selectedFirmwareId ) ;
135
137
}
136
138
}
@@ -158,6 +160,8 @@ export class FirmwareService {
158
160
159
161
// TODO: This is where we can add our logic of fetching from GitHub
160
162
private async downloadSpecificFirmware ( firmwareId : string ) : Promise < string > {
163
+
164
+ console . log ( "Downloading firmware for:" , firmwareId ) ;
161
165
const selectedFirmware = this . firmwareOptions [ firmwareId ]
162
166
if ( ! selectedFirmware || ! selectedFirmware . url ) {
163
167
throw new Error ( `Invalid firmware selection or no URL for: ${ firmwareId } ` ) ;
@@ -170,10 +174,12 @@ export class FirmwareService {
170
174
}
171
175
} ) ;
172
176
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
+ // }
177
183
178
184
this . firmwareBlob = await result . blob ( ) ;
179
185
const uint8Array = new Uint8Array ( await this . firmwareBlob . arrayBuffer ( ) ) ;
0 commit comments