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 {
163163
164164 const handleFirmwareUpdateMessage = message => {
165165 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 ;
166172 case 'Error' :
167173 this . updating . next ( { status : this . updateStatusEnum . ERROR , err : `Can't update Firmware: ${ message . Msg } ` } ) ;
168174 updateFirmwareMessagesSubscription . unsubscribe ( ) ;
169175 break ;
170- case 'Done' :
171- this . updating . next ( { status : this . updateStatusEnum . DONE } ) ;
172- updateFirmwareMessagesSubscription . unsubscribe ( ) ;
173- break ;
174176 default :
175177 break ;
176178 }
You can’t perform that action at this time.
0 commit comments