X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelegps-v1.0%2Fao_pins.h;h=99293da8f099923770a569af54380b654559398d;hb=HEAD;hp=5f53dd9dd39dc745ba2396b9d7b17c61f4ff16a5;hpb=740d964ab82da8695c04650926afee4a0905011c;p=fw%2Faltos diff --git a/src/telegps-v1.0/ao_pins.h b/src/telegps-v1.0/ao_pins.h index 5f53dd9d..99293da8 100644 --- a/src/telegps-v1.0/ao_pins.h +++ b/src/telegps-v1.0/ao_pins.h @@ -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 @@ -71,11 +72,12 @@ #define HAS_GPS 1 #define HAS_FLIGHT 0 #define HAS_LOG 1 +#define FLIGHT_LOG_APPEND 1 #define HAS_TRACKER 1 #define AO_CONFIG_DEFAULT_APRS_INTERVAL 0 #define AO_CONFIG_DEFAULT_RADIO_POWER 0xc0 -#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX 496 * 1024 +#define AO_LOG_FORMAT AO_LOG_FORMAT_TELEGPS /* * GPS @@ -105,6 +107,16 @@ #define AO_CC115L_DONE_INT_PORT 0 #define AO_CC115L_DONE_INT_PIN 2 +/* SN 1959, owned by J. Patrick Bowers, had a hard landing and appears to have broken the + * internal connection between pin 8 and the chip. This board + * has been fixed by jumpering pin 8 to pin 10, which means that + * the DONE_INT_PIN is now 4 instead of 2. When building custom firmware for + * this board, just adjust the ao_pins.h value before compiling + + #define AO_CC115L_DONE_INT_PIN_SN_1959 4 + + */ + /* * Flash (M25) */ @@ -131,7 +143,7 @@ struct ao_adc { }; #define AO_ADC_DUMP(p) \ - printf("tick: %5u batt: %5d\n", \ + printf("tick: %5lu batt: %5d\n", \ (p)->tick, \ (p)->adc.v_batt)