diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 191f74e..6f22c5e 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -962,9 +962,8 @@ class MeshCoreConnector extends ChangeNotifier { try { await sendFrame(buildGetBattAndStorageFrame()); } catch (e) { - // Reset flag on error to allow retry - // Don't disconnect on battery request failure - it may be transient - _batteryRequested = false; + // Connection likely lost - trigger disconnection handling + _handleDisconnection(); } }