You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Failed to fetch releases: ${releases.status}${releases.statusText}`);
49
47
}
@@ -59,8 +57,6 @@ export class FirmwareService {
59
57
constlatestRelease=releasesData[0];
60
58
if(latestRelease&&latestRelease.assets){
61
59
latestRelease.assets.forEach((asset: any)=>{
62
-
// Log the asset for debugging.
63
-
console.log('Asset:',asset);
64
60
65
61
// We should make the name the full name of the asset but the key the firmwareId (the board name in lowercase with dashes and an optional "m" prefix for minimal).
66
62
constfirmwareName=asset.name;
@@ -71,20 +67,12 @@ export class FirmwareService {
71
67
}
72
68
constfirmwareUrl=asset.browser_download_url;
73
69
74
-
// Log the firmwareId, firmwareName, and firmwareUrl for debugging.
@@ -100,6 +88,20 @@ export class FirmwareService {
100
88
returnfirmwareOptions;
101
89
}
102
90
91
+
// Create an init function that performs any asynchronous initialization for the firmware service. For now that will just be fetching the firmware options from GitHub.
0 commit comments