fixup! fl16: Indicate UEFI hotkey mode by background color

This commit is contained in:
Daniel Schaefer
2023-11-24 15:30:55 +08:00
parent 67be5557fb
commit 11a70a11ed

View File

@@ -68,13 +68,17 @@ void handle_factory_command(uint8_t *data) {
if (command_data[0] == 0x01) { if (command_data[0] == 0x01) {
bios_mode = true; bios_mode = true;
// Red // Red
#if defined(RGB_MATRIX_ENABLE)
rgb_matrix_sethsv_noeeprom(0, 0xFF, 0xFF); rgb_matrix_sethsv_noeeprom(0, 0xFF, 0xFF);
rgb_matrix_mode_noeeprom(1); rgb_matrix_mode_noeeprom(1);
#endif
writePin(GP24, 1); writePin(GP24, 1);
} else { } else {
// White // White
#if defined(RGB_MATRIX_ENABLE)
rgb_matrix_sethsv_noeeprom(0, 0, 0xFF); rgb_matrix_sethsv_noeeprom(0, 0, 0xFF);
rgb_matrix_mode_noeeprom(1); rgb_matrix_mode_noeeprom(1);
#endif
bios_mode = false; bios_mode = false;
writePin(GP24, 0); writePin(GP24, 0);
} }