Fix stricter compiler

This commit is contained in:
Dennis Frett 2022-09-07 22:08:08 +02:00
parent cc9e7a7ff4
commit 81380980b1

View file

@ -183,7 +183,7 @@ void MiniDSP::setVolumeDB(float volumeDB) const {
return;
}
uint8_t SetVolumeCommand[] = {0x42, (int)-2*volumeDB};
uint8_t SetVolumeCommand[] = {0x42, (uint8_t)(-2*volumeDB)};
SendCommand(SetVolumeCommand, sizeof(SetVolumeCommand));
}