mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-04 03:18:10 +10:00
* Fix position precision for direct sends * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Clarify zero position precision logging * Use const channel reference for position precision * Use C linkage for position precision test entrypoints --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
10 lines
382 B
C
10 lines
382 B
C
#pragma once
|
|
|
|
#include "meshtastic/mesh.pb.h"
|
|
#include <stdint.h>
|
|
|
|
uint32_t getPositionPrecisionForChannel(uint8_t channelIndex);
|
|
void applyPositionPrecision(meshtastic_Position &position, uint32_t precision);
|
|
bool applyPositionPrecision(meshtastic_MeshPacket &packet, uint32_t precision);
|
|
bool applyPositionPrecisionForChannel(meshtastic_MeshPacket &packet, uint8_t channelIndex);
|