From 77841bfe3945adeacef760f4340831e99eb3f2c3 Mon Sep 17 00:00:00 2001 From: xinyang <895639507@qq.com> Date: Wed, 7 Aug 2019 02:11:28 +0800 Subject: [PATCH] fix bug. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 39086a2..2e498ec 100644 --- a/main.cpp +++ b/main.cpp @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) { bool ok = true; cout << "start running" << endl; do { - auto curr_state = mcu_data.state; + char curr_state = mcu_data.state; CNT_TIME("Total", { if (curr_state == BIG_ENERGY_STATE) {//大能量机关模式 if (last_state != BIG_ENERGY_STATE) {//若上一帧不是大能量机关模式,即刚往完成切换,则需要初始化