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:
László Monda
2017-10-05 20:18:57 +02:00
parent f8e83b139d
commit 9842a6ff60
3 changed files with 7 additions and 7 deletions

View File

@@ -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)