propably fixed a memorx access error
This commit is contained in:
4
main.go
4
main.go
@@ -116,7 +116,7 @@ func main() {
|
|||||||
killSignals := make(chan os.Signal, 1)
|
killSignals := make(chan os.Signal, 1)
|
||||||
signal.Notify(killSignals, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(killSignals, syscall.SIGINT, syscall.SIGTERM)
|
||||||
|
|
||||||
log.Info("LedD", VERSION)
|
log.Info("LedD PCA9685 backend", VERSION)
|
||||||
config := config{}
|
config := config{}
|
||||||
|
|
||||||
content, err := ioutil.ReadFile("config.yaml")
|
content, err := ioutil.ReadFile("config.yaml")
|
||||||
@@ -129,7 +129,7 @@ func main() {
|
|||||||
check(err)
|
check(err)
|
||||||
defer i2cDevice.Close()
|
defer i2cDevice.Close()
|
||||||
|
|
||||||
pca9685 := device.NewPCA9685(i2cDevice, "PWM Controller", config.Pca9685.MinPulse, config.Pca9685.MaxPulse, log)
|
pca9685 := device.NewPCA9685(i2cDevice, "PWM Controller", config.Pca9685.MinPulse, config.Pca9685.MaxPulse, logging.MustGetLogger("PCA9685"))
|
||||||
pca9685.Init()
|
pca9685.Init()
|
||||||
|
|
||||||
pwmMap = make(map[int32]*device.Pwm, 1)
|
pwmMap = make(map[int32]*device.Pwm, 1)
|
||||||
|
Reference in New Issue
Block a user