Skip to content

Commit

Permalink
fix: GPO saved rising/falling configuration does not correctly recall…
Browse files Browse the repository at this point in the history
… settings at startup CasparCG#305
  • Loading branch information
Julusian committed Dec 13, 2023
1 parent df81415 commit c79c5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/DatabaseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ QList<GpiPortModel> DatabaseManager::getGpiPorts()

QList<GpiPortModel> models;
while (sql.next())
models.push_back(GpiPortModel(sql.value("Id").toInt(),
models.push_back(GpiPortModel(sql.value("Id").toInt() - 1,
sql.value("RisingEdge").toInt() == 1, Playout::fromString(sql.value("Action").toString())));

return models;
Expand Down Expand Up @@ -549,7 +549,7 @@ QList<GpoPortModel> DatabaseManager::getGpoPorts()

QList<GpoPortModel> models;
while (sql.next())
models.push_back(GpoPortModel(sql.value("Id").toInt(),
models.push_back(GpoPortModel(sql.value("Id").toInt() - 1,
sql.value("RisingEdge").toInt() == 1, sql.value("PulseLengthMillis").toInt()));

return models;
Expand Down

0 comments on commit c79c5ff

Please sign in to comment.