mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-08-04 23:12:58 +10:00
Update lib/helpers/cayenne_lpp.dart
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -192,9 +192,8 @@ class CayenneLpp {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Handle parsing errors, possibly due to malformed data
|
// Handle parsing errors, possibly due to malformed data
|
||||||
appLogger.error('Error parsing Cayenne LPP data: $e');
|
appLogger.error('Error parsing Cayenne LPP data: $e');
|
||||||
return <
|
// Return any telemetry parsed so far to preserve partial data
|
||||||
Map<String, dynamic>
|
return telemetry;
|
||||||
>[]; // Return an empty list on error to avoid crashing the app
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user