signed compare
This commit is contained in:
parent
eeb94fffd4
commit
2c8fc58640
1 changed files with 2 additions and 2 deletions
4
dc11.cpp
4
dc11.cpp
|
@ -146,14 +146,14 @@ void dc11::test_serial(const std::string & txt) const
|
|||
#if defined(ESP32)
|
||||
uart_write_bytes(ESP32_UART, txt.c_str(), txt.size());
|
||||
#elif IS_POSIX
|
||||
if (write(serial_fd, txt.c_str(), txt.size()) != txt.size())
|
||||
if (write(serial_fd, txt.c_str(), txt.size()) != ssize_t(txt.size()))
|
||||
DOLOG(warning, false, "DC11 failed to send test string to line %d", i);
|
||||
#endif
|
||||
}
|
||||
else if (pfds[dc11_n_lines + i].fd != INVALID_SOCKET) {
|
||||
DOLOG(info, false, "DC11 socket line %d", i);
|
||||
|
||||
if (write(pfds[dc11_n_lines + i].fd, txt.c_str(), txt.size()) != txt.size())
|
||||
if (write(pfds[dc11_n_lines + i].fd, txt.c_str(), txt.size()) != ssize_t(txt.size()))
|
||||
DOLOG(warning, false, "DC11 failed to send test string to line %d", i);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue