Skip to content

Commit

Permalink
Cleanup and commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkopp committed Mar 17, 2022
1 parent 585eee1 commit 30f4373
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/presets/src/Lighting/LightingSimVars.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,17 @@ class LightingSimVars {
* Sets the loading request value. Typically used to reset to 0 after the preset has been loaded.
* @param value usually loadFromData to 0 to reset the request.
*/
void setLoadLightingPresetRequest(
FLOAT64 value) const { set_named_variable_value(LoadLightingPresetRequest, value); }
void setLoadLightingPresetRequest(FLOAT64 value) const {
set_named_variable_value(LoadLightingPresetRequest, value);
}

/**
* Reads the request preset save variable.
* @return INT64 signifying the preset to be loaded
*/
FLOAT64
getSaveLightingPresetRequest() const { return get_named_variable_value(SaveLightingPresetRequest); }
FLOAT64 getSaveLightingPresetRequest() const {
return get_named_variable_value(SaveLightingPresetRequest);
}

/**
* Sets the save request value. Typically used to reset to 0 after the preset has been loaded.
Expand Down Expand Up @@ -177,8 +179,9 @@ class LightingSimVars {
* @param index of the light potentiometer
* @return value in percent over 100 (0..100)
*/
FLOAT64 getLightPotentiometer(
int index) const { return aircraft_varget(lightPotentiometer, m_Units->Percent, index); }
FLOAT64 getLightPotentiometer(int index) const {
return aircraft_varget(lightPotentiometer, m_Units->Percent, index);
}

/**
* Sets a light potentiometer setting to the simulator.
Expand Down

0 comments on commit 30f4373

Please sign in to comment.