Skip to content

Commit 593c825

Browse files
committed
Fix inverted ChatMix percentage mapping for SteelSeries Arctis 7/Pro (#475)
The map() output range was backwards: neutral position (255) mapped to 0% instead of 100%. Swap range so percentages correctly reflect volume.
1 parent 410668a commit 593c825

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/devices/steelseries_arctis_7.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ class SteelSeriesArctis7 : public protocols::SteelSeriesLegacyDevice<SteelSeries
167167
}
168168

169169
// Calculate percentages (game/chat are 191-255, neutral at 255)
170-
int game_pct = (game == 0) ? 100 : map(game, 191, 255, 100, 0);
171-
int chat_pct = (chat == 0) ? 100 : map(chat, 191, 255, 100, 0);
170+
int game_pct = (game == 0) ? 100 : map(game, 191, 255, 0, 100);
171+
int chat_pct = (chat == 0) ? 100 : map(chat, 191, 255, 0, 100);
172172

173173
return ChatmixResult {
174174
.level = level,

0 commit comments

Comments
 (0)