File tree 1 file changed +6
-4
lines changed
src/rust/bitbox02-rust/src/hww/api
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -164,10 +164,12 @@ async fn process_upgrade(
164
164
if response. is_ok ( ) {
165
165
hal. ui ( ) . status ( "Upgrade\n successful" , true ) . await ;
166
166
bitbox02:: reset_ble ( ) ;
167
- // Since the Bluetooth host will not be there anymore to read this response, this task will
168
- // not be cleared by the executor. We do it manually to make space for the next task upon
169
- // reconnection.
170
- crate :: async_usb:: cancel ( ) ;
167
+ if bitbox02:: communication_mode_ble_enabled ( ) {
168
+ // Since the Bluetooth host will not be there anymore to read this response, this task
169
+ // will not be cleared by the executor. We do it manually to make space for the next
170
+ // task upon reconnection.
171
+ crate :: async_usb:: cancel ( ) ;
172
+ }
171
173
} else {
172
174
hal. ui ( ) . status ( "Upgrade failed" , false ) . await ;
173
175
}
You can’t perform that action at this time.
0 commit comments