diff options
| -rw-r--r-- | main.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -102,10 +102,10 @@ class DAC {  		uint8_t get_volume(uint8_t c) {  			uint8_t buf;  			i2c.read_reg(0x4a, 0x1a + c, 1, &buf); -			return buf & 0x7f; +			return ((buf & 0x7f) - 0x19) & 0x7f;  		}  		void set_volume(uint8_t c, uint8_t v) { -			i2c.write_reg(0x4a, 0x1a + c, v & 0x7f); +			i2c.write_reg(0x4a, 0x1a + c, (v + 0x19) & 0x7f);  		}  };  | 
