Skip to content

Fix GCC build and add MAG274QRF-QD (3CC2) support#66

Open
aydiler wants to merge 2 commits intocouriersud:masterfrom
aydiler:fix-build-and-add-mag274qrf-qd-3cc2
Open

Fix GCC build and add MAG274QRF-QD (3CC2) support#66
aydiler wants to merge 2 commits intocouriersud:masterfrom
aydiler:fix-build-and-add-mag274qrf-qd-3cc2

Conversation

@aydiler
Copy link

@aydiler aydiler commented Jan 20, 2026

Summary

  • Fix build failure with GCC 14+ by adding missing #include <cstdint> to psteelseries.h
  • Add support for MAG274QRF-QD (3CC2) variant with hardware identifier 0x9a

Details

Build Fix

psteelseries.h uses uint8_t without including <cstdint>. Newer GCC versions are stricter about implicit includes and fail to compile:

src/psteelseries.h:22:32: error: expected ')' before 'n'
   22 |         steel_rgb_entry(uint8_t n, uint8_t vr, uint8_t vg, uint8_t vb)

Monitor Support

Adds support for MAG274QRF-QD monitors manufactured in late 2023 with variant code 3CC2. These units report identifier 00\x9a instead of 00e but use the same V56 firmware.

Monitor info:

  • Model: MAG274QRF-QD
  • Variant: 3CC2
  • Manufactured: 2023.11
  • Identifier: 00\x9a
  • Firmware version: V56

Debug output:

Vendor Id:      0x1462
Product Id:     0x3fa4
Product:        MSI Gaming Controller
Monitor Series: MAG274QRF-QD (3CC2)
LED support:    MysticOptix

Test plan

  • Verified build fails without cstdint fix on GCC 14
  • Verified monitor is detected as "Unknown" without the variant entry
  • Verified brightness/contrast read and write works with the patch
  • Verified MysticOptix LED control is available

🤖 Generated with Claude Code

aydiler and others added 2 commits January 20, 2026 03:19
psteelseries.h uses uint8_t but doesn't include <cstdint>.
This causes build failures with GCC 14+ which is stricter about
implicit includes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds support for MAG274QRF-QD monitors with identifier 0x9a.
This appears to be a 2023 production variant with the same V56
firmware as the existing MAG274QRF-QD FW.020 entry but with a
different hardware identifier.

Tested on: MAG274QRF-QD manufactured 2023.11

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant