Skip to content

Commit

Permalink
[pyFps] Try mean to trigger confupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
DasVinch committed Jan 7, 2025
1 parent 643fa4f commit 66e5b38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python_module/CacaoProcessTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,10 @@ If entry already exists, do not modify it
[](pyFps &cls) {
return cls.keys();
})

.def("signal_update",
&pyFps::signal_update,
R"pbdoc(Send update signal to FPS
)pbdoc")
.def("CONFstart",
&pyFps::CONFstart,
R"pbdoc(FPS start CONF process
Expand Down
6 changes: 6 additions & 0 deletions python_module/pyFps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ class pyFps
return levelKeys;
}

void signal_update()
{
fps_.md->signal |=
FUNCTION_PARAMETER_STRUCT_SIGNAL_UPDATE; // notify GUI loop to update
}

errno_t CONFstart()
{
return functionparameter_CONFstart(&fps_);
Expand Down

0 comments on commit 66e5b38

Please sign in to comment.