Skip to content

Commit

Permalink
Fix stricter compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisfrett committed Sep 7, 2022
1 parent cc9e7a7 commit 8138098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MiniDSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 8138098

Please sign in to comment.