mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix stricter compiler
This commit is contained in:
parent
cc9e7a7ff4
commit
81380980b1
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue