From 367802fc71d713c2a02e88711067951f313239d1 Mon Sep 17 00:00:00 2001 From: Huamonarch Date: Fri, 15 May 2026 16:13:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20roller3.cpp=20=E4=B8=AD=20DetectMode=20e?= =?UTF-8?q?num=20class=20=E7=9A=84=20LOG=20=E8=BE=93=E5=87=BA=E5=92=8C=20s?= =?UTF-8?q?toi=20=E8=B5=8B=E5=80=BC=20cast=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eqpalg/algs/roller3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eqpalg/algs/roller3.cpp b/eqpalg/algs/roller3.cpp index 524dc2e..50ab459 100644 --- a/eqpalg/algs/roller3.cpp +++ b/eqpalg/algs/roller3.cpp @@ -217,7 +217,7 @@ void Roller3::print_load_content() { << std::endl; logger_->Debug() << "limit_error_:" << limit_error_ << ",limit_warn_:" << limit_warn_ << ",单位unit_:" << unit_ - << ",detect_mode_:" << detect_mode_ + << ",detect_mode_:" << static_cast(detect_mode_) << ",hold_time:" << hold_time_.count() << "ms" << std::endl; } @@ -286,12 +286,12 @@ int Roller3::init_X_exp() { .at("input") .at("param") .contains("detect_mode")) { - detect_mode_ = std::stoi(rule_json_.at("function") + detect_mode_ = static_cast(std::stoi(rule_json_.at("function") .at("input") .at("param") .at("detect_mode") .at("value") - .get()); + .get())); } if (rule_json_.at("function") .at("input")