altos/altosui: Add pad orientation configure option
[fw/altos] / src / ao_radio.c
index b5a67b99d025d9801cb5b5a87a2ad61c72511ea6..4c382bb9685b1f66045678066553e0d7e7378ffe 100644 (file)
@@ -161,8 +161,6 @@ static __code uint8_t radio_setup[] = {
        RF_SYNC0_OFF,           0x91,
 
        /* max packet length */
-       RF_PKTLEN_OFF,          sizeof (struct ao_telemetry),
-
        RF_PKTCTRL1_OFF,        ((1 << PKTCTRL1_PQT_SHIFT)|
                                 PKTCTRL1_APPEND_STATUS|
                                 PKTCTRL1_ADR_CHK_NONE),
@@ -233,7 +231,6 @@ static __code uint8_t fixed_pkt_setup[] = {
                                 (DEVIATION_M << RF_DEVIATN_DEVIATION_M_SHIFT)),
 
        /* max packet length -- now set inline */
-       // RF_PKTLEN_OFF,               sizeof (struct ao_telemetry),
        RF_PKTCTRL1_OFF,        ((1 << PKTCTRL1_PQT_SHIFT)|
                                 PKTCTRL1_APPEND_STATUS|
                                 PKTCTRL1_ADR_CHK_NONE),
@@ -436,7 +433,9 @@ ao_radio_test(void)
        mode++;
        if ((mode & 2) && !radio_on) {
                ao_set_monitor(0);
+#if PACKET_HAS_SLAVE
                ao_packet_slave_stop();
+#endif
                ao_radio_get(0xff);
                RFST = RFST_STX;
                radio_on = 1;