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

Fix the AccessLevel Enum

parent 136b12a1
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ type BridgeDevice struct {
IeeeAddress string `json:"ieee_address"`
SwBuildID string `json:"software_build_id"`
FriendlyName string `json:"friendly_name"`
XAALDevice []*xaal.Device
// Manufacturer string `json:"manufacturer"` // TODO: This is quite the same as Vendor / Model
XAALDevice []*xaal.Device
}
type Expose struct {
......@@ -76,7 +76,8 @@ func (bDev *BridgeDevice) SetTopic() string {
}
func (l AccessLevel) String() string {
return [...]string{"R", "W", "RW", "RN", "RWN"}[l]
return [...]string{"--", "R", "W", "RW", "Err", "RN", "Err", "RWN"}[l]
// return fmt.Sprintf("%d", l)
}
func (l AccessLevel) EnumIndex() int {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment