From 8807347ec62148040719e7426d9c68c18ab3d80e Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Fri, 10 May 2024 16:56:07 +0200 Subject: [PATCH] ESP32 compile fix --- dc11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dc11.cpp b/dc11.cpp index 0524fd7..f2e5047 100644 --- a/dc11.cpp +++ b/dc11.cpp @@ -567,8 +567,9 @@ void dc11::write_word(const uint16_t addr, const uint16_t v) DOLOG(info, false, "DC11 line %d disconnected\n", line_nr + 1); registers[line_nr * 4 + 0] |= 0140000; // "ERROR", CARRIER TRANSITION - +#if IS_POSIX assert(fd != serial_fd); +#endif close(fd); pfds[dc11_n_lines + line_nr].fd = INVALID_SOCKET; }