mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-11 02:57:04 +10:00
Throw an exception for unsupported LPP types in CayenneLpp class
This commit is contained in:
@@ -258,8 +258,9 @@ class CayenneLpp {
|
|||||||
break;
|
break;
|
||||||
// Add more types as needed...
|
// Add more types as needed...
|
||||||
default:
|
default:
|
||||||
// Unknown type: skip or handle error?
|
throw Exception(
|
||||||
continue;
|
'Unsupported LPP type: ${type.toRadixString(16).padLeft(2, '0')}',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user