Skip to content
Snippets Groups Projects
Commit 962d5daa authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Added comments

parent 676a6407
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ import (
"gitlab.imt-atlantique.fr/xaal/code/go/core/xaal"
)
// setupDevice sets up the xAAL device with the bridge device information
func setupDevice(dev *xaal.Device, bDevice *BridgeDevice) {
dev.VendorID = bDevice.Definition.Vendor
dev.ProductID = bDevice.Definition.Model
......@@ -17,6 +18,7 @@ func setupDevice(dev *xaal.Device, bDevice *BridgeDevice) {
dev.Info = "z2m:" + bDevice.Type + ":" + bDevice.FriendlyName
}
// newDevices creates new xAAL devices from a bridge device
func newDevices(gw *gateway, bDevice *BridgeDevice) {
// TODO: Handle errors
baseAddr := gw.baseAddr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment