altos: Try RDF mode for TX calibration
[fw/altos] / src / drivers / ao_cc115l.c
index 0e019bc063a55851d09684c70a3d0df64f17bafb..216432bdc6ee9aba8e0a86553afc4be79bc787eb 100644 (file)
@@ -23,7 +23,7 @@
 
 #define AO_RADIO_MAX_SEND      sizeof (struct ao_telemetry_generic)
 
-static uint8_t ao_radio_mutex;
+uint8_t ao_radio_mutex;
 
 static uint8_t ao_radio_fifo;          /* fifo drained interrupt received */
 static uint8_t ao_radio_done;          /* tx done interrupt received */
@@ -33,7 +33,7 @@ static uint8_t ao_radio_mcu_wake;     /* MARC status change */
 static uint8_t ao_radio_marcstate;     /* Last read MARC state value */
 
 /* Debugging commands */
-#define CC115L_DEBUG   1
+#define CC115L_DEBUG   0
 
 /* Runtime tracing */
 #define CC115L_TRACE   0
@@ -638,7 +638,7 @@ ao_radio_test_cmd(void)
 #endif
                ao_radio_get();
                ao_radio_set_len(0xff);
-               ao_radio_set_mode(AO_RADIO_MODE_PACKET_TX | AO_RADIO_MODE_BITS_FIXED);
+               ao_radio_set_mode(AO_RADIO_MODE_RDF);
                ao_radio_strobe(CC115L_SFTX);
                ao_radio_pa_on();
                ao_radio_strobe(CC115L_STX);