File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -280,15 +280,14 @@ func (port *windowsPort) SetRTS(rts bool) error {
280
280
return nil
281
281
}
282
282
283
- // GetCommModemStatus constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcommmodemstatus.
284
- const (
285
- MS_CTS_ON = 0x0010
286
- MS_DSR_ON = 0x0020
287
- MS_RING_ON = 0x0040
288
- MS_RLSD_ON = 0x0080
289
- )
290
-
291
283
func (port * windowsPort ) GetModemStatusBits () (* ModemStatusBits , error ) {
284
+ // GetCommModemStatus constants. See https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcommmodemstatus.
285
+ const (
286
+ MS_CTS_ON = 0x0010
287
+ MS_DSR_ON = 0x0020
288
+ MS_RING_ON = 0x0040
289
+ MS_RLSD_ON = 0x0080
290
+ )
292
291
var bits uint32
293
292
if err := windows .GetCommModemStatus (port .handle , & bits ); err != nil {
294
293
return nil , & PortError {}
You can’t perform that action at this time.
0 commit comments