Skip to content

Commit

Permalink
[simpleio] Fix invalid iterator next
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 16, 2024
1 parent db841e5 commit 6cf8a0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class SimpleIODatabase : public TreeNodeBasedItemModel<SimpleIONode>
QDirIterator iio_it(iio.dir());
while(iio_it.hasNext())
{
const auto voltage = QFileInfo{dir.next()};
const auto voltage = QFileInfo{iio_it.next()};
auto vname = voltage.fileName();
if(vname.startsWith("in_voltage") && vname.endsWith("_raw"))
{
Expand Down

0 comments on commit 6cf8a0c

Please sign in to comment.