Extract MAX_PWM_BRIGHTNESS.

This commit is contained in:
László Monda
2017-09-28 01:35:04 +02:00
parent d4124d8331
commit 9a4c49e9a6
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ void UhkModuleSlaveDriver_Init(uint8_t uhkModuleId)
uhkModuleSourceState->isTestLedOn = true;
uhkModuleTargetState->isTestLedOn = false;
uhkModuleSourceState->ledPwmBrightness = 0x64;
uhkModuleSourceState->ledPwmBrightness = MAX_PWM_BRIGHTNESS;
uhkModuleTargetState->ledPwmBrightness = 0;
}

View File

@@ -10,6 +10,7 @@
#define UHK_MODULE_MAX_COUNT 3
#define KEY_STATE_SIZE (LEFT_KEYBOARD_HALF_KEY_COUNT/8 + 1)
#define MAX_PWM_BRIGHTNESS 0x64
// Typedefs: