chore: auto define navigation type based on keys present (#4893)

This commit is contained in:
3djc
2024-05-27 19:00:31 +10:00
committed by GitHub
parent e807ccbebf
commit 83c325c779
5 changed files with 50 additions and 38 deletions
+1 -7
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _BOARD_H_
#define _BOARD_H_
#pragma once
#include <inttypes.h>
#include "hal.h"
@@ -31,10 +30,6 @@
#include "opentx_constants.h"
#include "board_common.h"
#if defined(RADIO_TX12) || defined(RADIO_TX12MK2) || defined(RADIO_BOXER) || defined(RADIO_ZORRO) || defined(RADIO_POCKET) || defined(RADIO_MT12)
#define NAVIGATION_X7_TX12
#endif
#if defined(ROTARY_ENCODER_NAVIGATION)
// Rotary Encoder driver
void rotaryEncoderInit();
@@ -430,4 +425,3 @@ void setTopBatteryValue(uint32_t volts);
#define NUM_TRIMS_KEYS (NUM_TRIMS * 2)
#endif // _BOARD_H_