Skip to content

Commit

Permalink
[wip] GPIO: save
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 11, 2023
1 parent 947bb3d commit f445697
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SimpleIODatabase : public TreeNodeBasedItemModel<SimpleIONode>
enumerateADCs(adcs);
enumerateDACs(dacs);
enumerateGPIOs(gpios);
enumerateHIDs(gpios);
enumerateHIDs(hid);

// List ADCs

Expand Down Expand Up @@ -351,19 +351,16 @@ SimpleIOProtocolSettingsWidget::SimpleIOProtocolSettingsWidget(QWidget* parent)
layout->addRow(btns);

connect(m_addPort, &QPushButton::clicked, this, [this] {

#if 0
auto dial = new AddPortDialog{*this};
if(dial->exec() == QDialog::Accepted)
{
auto port = dial->port();
if(!port.name.isEmpty() && !port.controls.empty())
if(!port.name.isEmpty() && !port.path.isEmpty())
{
m_ports.push_back(port);
updateTable();
}
}
#endif
});
connect(m_rmPort, &QPushButton::clicked, this, [this] {
ossia::flat_set<int> rows_to_remove;
Expand Down

0 comments on commit f445697

Please sign in to comment.