We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d62a051 commit b7aa3b4Copy full SHA for b7aa3b4
2 files changed
.gitignore
@@ -31,6 +31,7 @@ doc/html
31
ipch
32
Debug
33
Release
34
+.idea/
35
36
# pixi environments
37
.pixi
src/impl/unix.cc
@@ -455,7 +455,7 @@ Serial::SerialImpl::reconfigurePort ()
455
// Compensate for the stopbits_one_point_five enum being equal to int 3,
456
// and not 1.5.
457
if (stopbits_ == stopbits_one_point_five) {
458
- byte_time_ns_ += ((1.5 - stopbits_one_point_five) * bit_time_ns);
+ byte_time_ns_ += (1.5 - static_cast<double>(stopbits_one_point_five)) * bit_time_ns;
459
}
460
461
0 commit comments