Skip to content

Commit 8f447eb

Browse files
committed
Make win32 internal constants private.
1 parent 20a4794 commit 8f447eb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

serial_windows.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,14 @@ func (port *windowsPort) SetRTS(rts bool) error {
280280
return nil
281281
}
282282

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-
291283
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+
)
292291
var bits uint32
293292
if err := windows.GetCommModemStatus(port.handle, &bits); err != nil {
294293
return nil, &PortError{}

0 commit comments

Comments
 (0)