diff --git a/arduino/serialutils/serialutils.go b/arduino/serialutils/serialutils.go index fdb57aa204f..5a786826b1a 100644 --- a/arduino/serialutils/serialutils.go +++ b/arduino/serialutils/serialutils.go @@ -17,6 +17,7 @@ package serialutils import ( "fmt" + "runtime" "strings" "time" @@ -37,10 +38,15 @@ func TouchSerialPortAt1200bps(port string) error { return errors.WithMessage(err, tr("opening port at 1200bps")) } - // Set DTR to false - if err = p.SetDTR(false); err != nil { - p.Close() - return errors.WithMessage(err, tr("setting DTR to OFF")) + if runtime.GOOS != "windows" { + // This is not required on Windows + // TODO: Investigate if it can be removed for other OS too + + // Set DTR to false + if err = p.SetDTR(false); err != nil { + p.Close() + return errors.WithMessage(err, tr("setting DTR to OFF")) + } } // Close serial port pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy