refactor: replace changeNetDeviceIpConfig with forceIp due to SDK update

This commit is contained in:
obyalian
2025-09-18 14:15:31 +08:00
parent dffb232816
commit 65d1657c43
+1 -1
View File
@@ -1093,7 +1093,7 @@ bool OBCameraNodeDriver::applyForceIpConfig() {
return false;
}
if (ctx_->changeNetDeviceIpConfig(mac.c_str(), config)) {
if (ctx_->forceIp(mac.c_str(), config)) {
RCLCPP_INFO(logger_, "[ForceIP] Config applied. dhcp=%d ip=%s mask=%s gw=%s", config.dhcp,
force_ip_address_.c_str(), force_ip_subnet_mask_.c_str(),
force_ip_gateway_.c_str());