From ff198b8a32cc93958b4f53e2ca27cf9ccc4cd65d Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Fri, 22 Aug 2025 13:32:52 -0400 Subject: [PATCH] Implement removeFixedPosition --- packages/core/src/meshDevice.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/core/src/meshDevice.ts b/packages/core/src/meshDevice.ts index adc61cc4..aef3f04b 100755 --- a/packages/core/src/meshDevice.ts +++ b/packages/core/src/meshDevice.ts @@ -405,6 +405,26 @@ export class MeshDevice { ); } + /** + * Remove the fixed position of a device + */ + public async removeFixedPosition(): Promise { + const removePositionMessage = create(Protobuf.Admin.AdminMessageSchema, { + payloadVariant: { + case: 'removeFixedPosition', + value: true, + }, + }); + return await this.sendPacket( + toBinary(Protobuf.Admin.AdminMessageSchema, removePositionMessage), + Protobuf.Portnums.PortNum.ADMIN_APP, + "self", + 0, + true, + false, + ); + } + /** * Gets specified channel information from the radio */