settings v6

This commit is contained in:
Lubos Petrovic
2020-12-24 18:00:18 +01:00
parent b69c44c0b8
commit 662ae3ae7a
2 changed files with 22 additions and 7 deletions

View File

@@ -73,8 +73,12 @@ void Board320_240::afterSetup() {
// Init GPS
if (liveData->settings.gpsHwSerialPort <= 2) {
Serial.print("GPS initialization on hw uart: ");
Serial.print("GPS initialization on hwUart: ");
Serial.println(liveData->settings.gpsHwSerialPort);
if (liveData->settings.gpsHwSerialPort == 0) {
Serial.println("hwUart0 collision with serial console! Disabling serial console");
Serial.end();
}
gpsHwUart = new HardwareSerial(liveData->settings.gpsHwSerialPort);
gpsHwUart->begin(9600);
}