diff --git a/lib/devices/steelseries_arctis_7.hpp b/lib/devices/steelseries_arctis_7.hpp index 365d59c..7b324d1 100644 --- a/lib/devices/steelseries_arctis_7.hpp +++ b/lib/devices/steelseries_arctis_7.hpp @@ -155,18 +155,20 @@ class SteelSeriesArctis7 : public protocols::SteelSeriesLegacyDevice 64 (chat favored) int level; if (game == 0 && chat == 0) { level = 64; } else if (game == 0) { - level = 64 + 255 - chat; + level = 64 - (255 - chat); } else { - level = 64 + (-1) * (255 - game); + level = 64 + (255 - game); } // Calculate percentages (game/chat are 191-255, neutral at 255) - int game_pct = (game == 0) ? 100 : map(game, 191, 255, 100, 0); - int chat_pct = (chat == 0) ? 100 : map(chat, 191, 255, 100, 0); + int game_pct = (game == 0) ? 100 : map(game, 191, 255, 0, 100); + int chat_pct = (chat == 0) ? 100 : map(chat, 191, 255, 0, 100); return ChatmixResult { .level = level,