Merge UhkModuleVars into uhkModuleStates. Also make uhkModuleStates globally accessible because it must be accessed by other parts of the firmware, so it's unpractical to keep it private and write accessor functions for it.
This commit is contained in:
@@ -80,7 +80,7 @@ void setTestLed(void)
|
||||
{
|
||||
uint8_t ledState = GenericHidInBuffer[1];
|
||||
TEST_LED_SET(ledState);
|
||||
UhkModuleVars[0].isTestLedOn = ledState;
|
||||
uhkModuleStates[0].sourceVars.isTestLedOn = ledState;
|
||||
}
|
||||
|
||||
// To be removed. Now it's already part of getKeyboardState()
|
||||
@@ -147,7 +147,7 @@ void setLedPwm(void)
|
||||
{
|
||||
uint8_t brightnessPercent = GenericHidInBuffer[1];
|
||||
LedPwm_SetBrightness(brightnessPercent);
|
||||
UhkModuleVars[0].ledPwmBrightness = brightnessPercent;
|
||||
uhkModuleStates[0].sourceVars.ledPwmBrightness = brightnessPercent;
|
||||
}
|
||||
|
||||
void getAdcValue(void)
|
||||
|
||||
Reference in New Issue
Block a user