File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,16 @@ export default class FirmwareUpdater {
163
163
164
164
const handleFirmwareUpdateMessage = message => {
165
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 ;
166
172
case 'Error' :
167
173
this . updating . next ( { status : this . updateStatusEnum . ERROR , err : `Can't update Firmware: ${ message . Msg } ` } ) ;
168
174
updateFirmwareMessagesSubscription . unsubscribe ( ) ;
169
175
break ;
170
- case 'Done' :
171
- this . updating . next ( { status : this . updateStatusEnum . DONE } ) ;
172
- updateFirmwareMessagesSubscription . unsubscribe ( ) ;
173
- break ;
174
176
default :
175
177
break ;
176
178
}
You can’t perform that action at this time.
0 commit comments