diff --git a/lib/Frontend/pages/ota_update.dart b/lib/Frontend/pages/ota_update.dart index 5ed5088e..63983801 100644 --- a/lib/Frontend/pages/ota_update.dart +++ b/lib/Frontend/pages/ota_update.dart @@ -58,7 +58,6 @@ class _OtaUpdateState extends ConsumerState { super.initState(); baseStatefulDevice = ref.read(knownDevicesProvider)[widget.device]; firmwareInfo ??= baseStatefulDevice?.fwInfo.value; - downloadFirmware(); WakelockPlus.enabled.then((value) => wakelockEnabledBeforehand = value); } @@ -236,7 +235,7 @@ class _OtaUpdateState extends ConsumerState { subtitle: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('Upload Progress: ${current} / ${firmwareFile!.length} = ${uploadProgress.toStringAsPrecision(3)}'), + Text('Upload Progress: ${current} / ${firmwareFile?.length} = ${uploadProgress.toStringAsPrecision(3)}'), Text('MTU: ${baseStatefulDevice!.mtu.value}'), Text('OtaState: ${otaState.name}'), Text('DeviceState: ${baseStatefulDevice!.deviceState.value}'),