mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-30 14:10:30 +10:00
_requestDeviceInfo added isConnected not already _awaitingSelfInfo
This commit is contained in:
@@ -990,6 +990,7 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _requestDeviceInfo() async {
|
Future<void> _requestDeviceInfo() async {
|
||||||
|
if (!isConnected || _awaitingSelfInfo) return;
|
||||||
_awaitingSelfInfo = true;
|
_awaitingSelfInfo = true;
|
||||||
await sendFrame(buildDeviceQueryFrame());
|
await sendFrame(buildDeviceQueryFrame());
|
||||||
await sendFrame(buildAppStartFrame());
|
await sendFrame(buildAppStartFrame());
|
||||||
|
|||||||
Reference in New Issue
Block a user