We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1297535 commit bd02b5aCopy full SHA for bd02b5a
src/firmware-updater.js
@@ -163,14 +163,16 @@ export default class FirmwareUpdater {
163
164
const handleFirmwareUpdateMessage = message => {
165
switch (message.ProgrammerStatus) {
166
+ case 'Busy':
167
+ if (message.Msg.indexOf('Operation completed: success! :-)') >= 0) {
168
+ this.updating.next({ status: this.updateStatusEnum.DONE });
169
+ updateFirmwareMessagesSubscription.unsubscribe();
170
+ }
171
+ break;
172
case 'Error':
173
this.updating.next({ status: this.updateStatusEnum.ERROR, err: `Can't update Firmware: ${message.Msg}` });
174
updateFirmwareMessagesSubscription.unsubscribe();
175
break;
- case 'Done':
- this.updating.next({ status: this.updateStatusEnum.DONE });
- updateFirmwareMessagesSubscription.unsubscribe();
- break;
176
default:
177
178
}
0 commit comments