altoslib: fix computation of TeleGPS battery voltage
[fw/altos] / src / teleballoon-v1.1 / ao_teleballoon.c
index a48e21d2302267b090a2a492c946dd968e131910..bdbf91d4cafd724c92bacf0d3d9d1d1f3711c68f 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,6 +27,8 @@ ao_ignite_set_pins(void)
        AO_IGNITER_DIR |= AO_IGNITER_DROGUE_BIT | AO_IGNITER_MAIN_BIT;
 }
 
+__pdata uint16_t ao_motor_number;
+
 void
 main(void)
 {
@@ -50,6 +53,8 @@ main(void)
                while (P1_3 == 0)
                        ;
        }
+       ao_task_init();
+
        ao_timer_init();
        ao_adc_init();
        ao_beep_init();
@@ -65,7 +70,7 @@ main(void)
        ao_gps_report_init();
        ao_telemetry_init();
        ao_radio_init();
-       ao_packet_slave_init(FALSE);
+       ao_packet_slave_init(TRUE);
 #if HAS_DBG
        ao_dbg_init();
 #endif