Skip to content

Commit

Permalink
Drive by warning fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Jan 8, 2024
1 parent 2263b38 commit 05608a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/usb/serial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class SerialPortImpl : public SerialPort
void setBaudRate(int baudRate) override
{
DCB dcb = {.DCBlength = sizeof(DCB),
.BaudRate = baudRate,
.BaudRate = (DWORD) baudRate,
.fBinary = true,
.ByteSize = 8,
.Parity = NOPARITY,
Expand Down

0 comments on commit 05608a6

Please sign in to comment.