Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int BoardAntennaSelect(RadioMode Mode, RadioBand Band) {
- // static int txNum = 0;
- + DEBUG_PRINT(("MODE=%d, BAND=%d\n",Mode, Band));
- if (Band == RADIO_BAND_VHF) {
- - if (Mode == RADIO_MODE_INIT) {
- + if (Mode == RADIO_MODE_TX) {
- + DEBUG_PRINT(("START TX\n"));
- // Wake pic to enable low voltage detection
- GPIOSetModeOutput(PWR_WAKE_PIN);
- GPIOSetHigh(PWR_WAKE_PIN);
- + Delay(1);
- // LogAdd(txNum, "tx", strlen("tx"));
- // txNum++;
- } else if (Mode == RADIO_MODE_DEINIT) {
- + DEBUG_PRINT(("END TX\n"));
- // LogAdd(txNum, "rx", strlen("rx"));
- GPIOSetLow(PWR_WAKE_PIN);
- GPIOSetModeInput(PWR_WAKE_PIN, GPIO_NO_PULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement