mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 02:18:22 +00:00
Introduce constructors for ExposeMapping
This should allow the ExposeMapping struct to be changed without constantly impacting its callers.
This commit is contained in:
@@ -33,7 +33,7 @@ func createSwitchServices(dev *Device) (byte, []*service.S, []*ExposeMapping, er
|
||||
sw.AddC(n.C)
|
||||
|
||||
svcs = append(svcs, sw.S)
|
||||
exposes = append(exposes, &ExposeMapping{&f, sw.On.C, nil})
|
||||
exposes = append(exposes, NewExposeMapping(&f, sw.On.C))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user