Fix typo in nrgkick type name (#326)
This commit is contained in:
parent
2d6a3920eb
commit
2bdec133c5
2 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
registry.Add("ngrkick-bluetooth", NewNRGKickBLEFromConfig)
|
||||
registry.Add("nrgkick-bluetooth", NewNRGKickBLEFromConfig)
|
||||
}
|
||||
|
||||
// NewNRGKickBLEFromConfig creates a NRGKickBLE charger from generic config
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@ type NRGKickBLE struct {
|
|||
current int
|
||||
}
|
||||
|
||||
func init() {
|
||||
registry.Add("nrgkick-bluetooth", NewNRGKickBLEFromConfig)
|
||||
}
|
||||
|
||||
// NewNRGKickBLEFromConfig creates a NRGKickBLE charger from generic config
|
||||
func NewNRGKickBLEFromConfig(other map[string]interface{}) (api.Charger, error) {
|
||||
cc := struct{ Device, MacAddress, PIN string }{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue