From 394ccb011511dbbf00b97e2e2d302e35feea7d80 Mon Sep 17 00:00:00 2001 From: Drath Date: Thu, 3 Jul 2025 01:08:23 +0200 Subject: [PATCH] just have default baud in hpp file --- include/LCDDisplay.hpp | 2 +- main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/LCDDisplay.hpp b/include/LCDDisplay.hpp index 1d9bf51..e5e6380 100644 --- a/include/LCDDisplay.hpp +++ b/include/LCDDisplay.hpp @@ -9,7 +9,7 @@ class LCDDisplay { void writeStr(std::string str); public: - LCDDisplay(std::string dev, uint32_t baud); + LCDDisplay(std::string dev, uint32_t baud = 0010002); // from termios-baud.h, B115200 ~LCDDisplay(); // custom char array diff --git a/main.cpp b/main.cpp index cd75a75..67a7934 100644 --- a/main.cpp +++ b/main.cpp @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { daemon_mode = (argc > 1 && std::string(argv[1]) == "-d"); /* init lcd and chars, set contrast and backlight */ - LCDDisplay lcd(LCD_PORT, B115200); + LCDDisplay lcd(LCD_PORT); std::array lines; lcd.setCustomChar(0, {16, 6, 9, 8, 8, 9, 6, 0}); // celcius