16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 6c5e419a authored by Daniele Tafani's avatar Daniele Tafani
Browse files

Fixed deprecated opa function for comaptibility with OPA 10.9.3.1.1

parent 7d197c01
...@@ -92,7 +92,7 @@ void OpaSensorGroup::read() { ...@@ -92,7 +92,7 @@ void OpaSensorGroup::read() {
STL_PORT_COUNTERS_DATA portCounters; STL_PORT_COUNTERS_DATA portCounters;
try { try {
if (omgt_pa_get_port_stats(_port, _imageId, 1, _portNum, &_imageId, &portCounters, NULL, 0, 1)) { if (omgt_pa_get_port_stats2(_port, _imageId, 1, _portNum, &_imageId, &portCounters, NULL, 0, 1)) {
throw std::runtime_error("Failed to get port counters"); throw std::runtime_error("Failed to get port counters");
} }
} catch (const std::exception &e) { } catch (const std::exception &e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment