Older variant.h files (IMO sloppily) don't define VEXT_ON_VALUE

But in an attempt to avoid updating lots of files, make it default to LOW
This commit is contained in:
Kevin Hester 2024-08-23 08:03:16 -07:00
parent b285aa5bd6
commit 5ce5b7b08b

View File

@ -177,6 +177,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Step #1: offer chance for variant-specific defines */
#include "variant.h"
#if defined(VEXT_ENABLE) && !defined(VEXT_ON_VALUE)
// Older variant.h files might not be defining this value, so stay with the old default
#define VEXT_ON_VALUE LOW
#endif
#ifndef GPS_BAUDRATE
#define GPS_BAUDRATE 9600
#endif