File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ func (m msg) args() xpc.Dict { return xpc.Dict(m).MustGetDict("kCBMsgArgs") }
12
12
func (m msg ) advertisementData () xpc.Dict {
13
13
return xpc .Dict (m ).MustGetDict ("kCBMsgArgAdvertisementData" )
14
14
}
15
- func (m msg ) attMTU () int { return xpc .Dict (m ).MustGetInt ("kCBMsgArgATTMTU" ) }
15
+
16
+ const macOSXDefaultMTU = 23
17
+
18
+ // Uses GetInt as oppose to MustGetInt due to OSX not supporting 'kCBMsgArgATTMTU'.
19
+ // Issue #29
20
+ func (m msg ) attMTU () int { return xpc .Dict (m ).GetInt ("kCBMsgArgATTMTU" , macOSXDefaultMTU ) }
16
21
func (m msg ) attWrites () xpc.Array { return xpc .Dict (m ).MustGetArray ("kCBMsgArgATTWrites" ) }
17
22
func (m msg ) attributeID () int { return xpc .Dict (m ).MustGetInt ("kCBMsgArgAttributeID" ) }
18
23
func (m msg ) characteristicHandle () int {
You can’t perform that action at this time.
0 commit comments