From 88c22ee4572e4acaccd66091e77cb8be2fad7e7d Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Thu, 26 Sep 2024 16:51:51 -0700 Subject: [PATCH] moved the gps baud rate magic number into header as a define. --- inc/board_config.h | 1 + src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/board_config.h b/inc/board_config.h index dc8e834..36517f1 100644 --- a/inc/board_config.h +++ b/inc/board_config.h @@ -24,6 +24,7 @@ // GPS CONFIGURATION (BN-220) #define GPS_TX_PIN 10 // GPS TX pin connected to Arduino RX #define GPS_RX_PIN 11 // GPS RX pin connected to Arduino TX + #define GPS_BUADRATE 9600 // GPS serial baud rate. // Radio defines #define RFM95_CS 8 diff --git a/src/main.cpp b/src/main.cpp index 1437d68..3433fde 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -130,10 +130,10 @@ void setup(void) { } // LED Ring Setup - FastLED.addLeds(leds, NUM_LEDS); // Initialize the LED ring + FastLED.addLeds(leds, NUM_LEDS); // GPS Setup - gpsSerial.begin(9600); // Start GPS communication at 9600 baud rate + gpsSerial.begin(GPS_BUADRATE); } void loop() {