Closed martinwag closed 2 months ago
You're right and I think there is an issue on Windows with serial. I'm sure we should revert the check on TCP for not Windows in third place and to have a behavior similar to previous version for Windows serial, I reverted the TCP check for Windows too.
libmodbus version
Git b25629bfb508bdce7d519884c0fa9810b7d98d44 (Head as of 2023-08-10)
Description
commit db1cbc593501590eef16bbf9e0746290ac9116b9 introduced some changes with commit description "windows only". However, this commit also changed linux behavior in three places. Commit 9b679b7c3b267f7a5d87e26b8f94138edd76f1d9 then reverts this, but misses one place.
I don't think this was intentionally left like this, but I also can't verify it. Please have a look if this is correct.