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")