Skip to content

Commit

Permalink
Merge pull request #80 from TD-er/bugfix/fix_build_baudrate
Browse files Browse the repository at this point in the history
[Build] Fix build issue, using _baud member instead of getBaudRate()
  • Loading branch information
reaper7 authored Oct 24, 2023
2 parents e960377 + f68b7b4 commit c199eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void SDM::modbusWrite(uint8_t* data, size_t messageLength) {

// Need to wait for all bytes in TX buffer are sent.
// N.B. flush() on serial port does often only clear the send buffer, not wait till all is sent.
const unsigned long waitForBytesSent_ms = (messageLength * 11000) / sdmSer.getBaudRate() + 1;
const unsigned long waitForBytesSent_ms = (messageLength * 11000) / _baud + 1;
resptime = millis() + waitForBytesSent_ms;
}

Expand Down

0 comments on commit c199eba

Please sign in to comment.