Skip to content

Commit e35b633

Browse files
committed
Move ifdef for USE_MATRIX_SWITCHES, and add more standardized DCSBIOS_USE_MATRIX_SWITCHES
1 parent 5e3135d commit e35b633

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/DcsBios.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ do not come with their own build system, we are just putting everything into the
130130
#include "internal/BcdWheels.h"
131131
#include "internal/AnalogMultiPos.h"
132132
#include "internal/RotarySwitch.h"
133+
#if defined(USE_MATRIX_SWITCHES) || defined(DCSBIOS_USE_MATRIX_SWITCHES)
133134
#include "internal/MatrixSwitches.h"
135+
#endif
134136
#include "internal/DualModeButton.h"
135137

136138
namespace DcsBios {

src/internal/MatrixSwitches.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef __DCSBIOS_MATRIX_SWITCHES_H
22
#define __DCSBIOS_MATRIX_SWITCHES_H
33

4-
#ifdef USE_MATRIX_SWITCHES
5-
64
#include <math.h>
75
#include "Arduino.h"
86
#include "SwitchMatrix.h" // https://github.com/dagoston93/SwitchMatrix
@@ -112,5 +110,4 @@ namespace DcsBios {
112110
};
113111
typedef Matrix3PosT<> Matrix3Pos;
114112
}
115-
#endif
116113
#endif

0 commit comments

Comments
 (0)