Skip to content

Commit 1e83db5

Browse files
committed
Fix "could not extract FPS"
At least with libroyale 3.4.0, the previous code left the variable `name` always empty.
1 parent 1d5df8c commit 1e83db5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pico_flexx_driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,7 @@ class PicoFlexx : public royale::IDepthDataListener, public royale::IExposureLis
747747
}
748748
OUT_INFO("use case changed to: " FG_YELLOW << useCases[idx]);
749749

750-
std::string name;
751-
useCases[idx].toStdString(name);
750+
std::string name = royale::String::toStdString(useCases[idx]);
752751
size_t end = name.find("FPS");
753752
size_t start = name.rfind('_', end);
754753

0 commit comments

Comments
 (0)