Move serial baud rate to config

pull/15/head
sh123 2021-02-08 14:23:39 +02:00
rodzic 5abff29de3
commit f090a41b1b
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,5 @@
#define SERIAL_BAUD_RATE 115200
// change pinouts if not defined through native board LORA_* definitions
#ifndef LORA_RST
#pragma message("LoRa pin definitions are not found, redefining...")

Wyświetl plik

@ -72,7 +72,7 @@ void setup() {
pinMode(BUILTIN_LED, OUTPUT);
digitalWrite(BUILTIN_LED, 1);
Serial.begin(115200);
Serial.begin(SERIAL_BAUD_RATE);
while (!Serial);
LoraPrs::Config config;