X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fproduct%2Fao_terraui.c;h=1866eb0c1183af7ac4bff51387eaca4c2ec6c31a;hb=46abd248fb2eb84f161672ffce121b2203d42be0;hp=8875ff487b7438040a9f8dd9478f8428e1f2bb61;hpb=d35c4df12a3d8e2dab5d41f8d918ff4237f91e46;p=fw%2Faltos diff --git a/src/product/ao_terraui.c b/src/product/ao_terraui.c index 8875ff48..1866eb0c 100644 --- a/src/product/ao_terraui.c +++ b/src/product/ao_terraui.c @@ -16,6 +16,7 @@ */ #include "ao.h" +#include #include static __xdata struct ao_telemetry_sensor ao_tel_sensor; @@ -593,7 +594,7 @@ ao_terramonitor(void) continue; if (!(ao_monitor_ring[monitor].all.status & PKT_APPEND_STATUS_1_CRC_OK)) continue; - ao_tel_rssi = (ao_monitor_ring[monitor].all.rssi >> 1) - 74; + ao_tel_rssi = AO_RSSI_FROM_RADIO(ao_monitor_ring[monitor].all.rssi); switch (ao_monitor_ring[monitor].all.telemetry.generic.type) { case AO_TELEMETRY_SENSOR_TELEMETRUM: case AO_TELEMETRY_SENSOR_TELEMINI: