From 81380980b19a86bd62b616156a531164bb3d4ff6 Mon Sep 17 00:00:00 2001 From: Dennis Frett Date: Wed, 7 Sep 2022 22:08:08 +0200 Subject: [PATCH] Fix stricter compiler --- MiniDSP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiniDSP.cpp b/MiniDSP.cpp index d612d55f..c9ec3e62 100644 --- a/MiniDSP.cpp +++ b/MiniDSP.cpp @@ -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)); }