Sim GUI: Add option to disable outputs on DS disable

This commit is contained in:
Peter Johnson
2019-10-21 00:33:51 -07:00
parent 2d3dac99f0
commit acf960f729
6 changed files with 40 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ static void DisplayPWMs() {
char name[32];
std::snprintf(name, sizeof(name), "PWM[%d]", i);
float val = HALSIM_GetPWMSpeed(i);
float val = HALSimGui::AreOutputsDisabled() ? 0 : HALSIM_GetPWMSpeed(i);
ImGui::Value(name, val, "%0.3f");
// lazily build history storage