public void cancelUpdate(){
  if (!isConnected()) {
    onError(OneSheeldError.DEVICE_NOT_CONNECTED);
    return;
  }
  stopFirmwareUpdateThreads();
  prepareForFirmwareUpdateEnd();
}

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