Skip to content

Commit

Permalink
Fix LED Display, Modifiy Text of Voltage Selector
Browse files Browse the repository at this point in the history
  • Loading branch information
henry committed Mar 8, 2024
1 parent dbe8e62 commit 58135fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions Engine/API/Hardware/rhxcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,16 @@ void RHXController::setSpiLedDisplay(const int* ledArray)
ledOut += 1 << i;
}

if (type == ControllerStimRecordUSB2) {
if (type == ControllerStimRecordUSB2) {
dev->SetWireInValue(WireInLedDisplay_S_USB2, (ledOut << 8), 0xff00);
} else if (type == ControllerRecordUSB3) {
dev->SetWireInValue(WireInMultiUse, ledOut);
// every 2 channel mapping to 1 led
int ledOutModified = 0;
for (int i = 0; i < 4; ++i) {
if (ledArray[2*i] > 0 || ledArray[2*i+1] > 0)
ledOutModified += 1 << i;
}
dev->SetWireInValue(WireInMultiUse, ledOutModified);
}

dev->UpdateWireIns();
Expand Down
6 changes: 3 additions & 3 deletions GUI/Widgets/controlpanelKONTEXtab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ ControlPanelKONTEXTab::ControlPanelKONTEXTab(ControllerInterface *controllerInte
SPIGroupBox->setLayout(SPIBusLayout1);


auto V14Button = new QRadioButton("+14/-4V");
auto V9Button = new QRadioButton("+/-9V");
auto V4Button = new QRadioButton("+4/-14V");
auto V14Button = new QRadioButton("+10/-4V");
auto V9Button = new QRadioButton("+/-7V");
auto V4Button = new QRadioButton("+4/-10V");
if (state->enableVStim) {
V9Button->setChecked(true);
} else {
Expand Down

0 comments on commit 58135fe

Please sign in to comment.