diff --git a/cmd/treatment/main.go b/cmd/treatment/main.go index 7baa380f..845247a6 100644 --- a/cmd/treatment/main.go +++ b/cmd/treatment/main.go @@ -328,7 +328,7 @@ func setChannels(mode string, l logging.Logger) error { // setVolume sends i2c commands to the amplifier in order to set the volume of the amplifier. func setVolume(hexVol string, bus embd.I2CBus) error { - vol, err := strconv.ParseInt(hexVol, 16, 8) + vol, err := strconv.ParseInt(hexVol, 10, 8) if err != nil { return fmt.Errorf("could not parse hex volume: %w", err) }