Compilation bugfix for I2C beeper

Software does not compile when you define a beeper connect through I2C.