Skip to content

Commit

Permalink
allow to change baud rate for serial test
Browse files Browse the repository at this point in the history
  • Loading branch information
wellenvogel committed Nov 12, 2023
1 parent 56c388b commit f885642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sertesttask/SerTestTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
void sertest(GwApi *api){
GwLog *logger=api->getLogger();
LOG_DEBUG(GwLog::LOG,"ser test task started");
Serial2.begin(9600,SERIAL_8N1,-1,GWSERIAL_RX);
Serial2.begin(api->getConfig()->getInt(GwConfigDefinitions::serialBaud), SERIAL_8N1,-1,GWSERIAL_RX);
while (true){
const char * T="SERTESTXXX";
LOG_DEBUG(GwLog::LOG,"sending %s",T);
Expand Down

0 comments on commit f885642

Please sign in to comment.