question: public void cancelUpdate ( ) { if ( ! isConnected ( ) ) { onError ( OneSheeldError . DEVICE_NOT_CONNECTED ) ; return ; } stopFirmwareUpdateThreads ( ) ; prepareForFirmwareUpdateEnd ( ) ; }
target:  Cancel the in-progress firmware update.