Explorar el Código

修复新协议低电量告警bug

lixioayao hace 5 años
padre
commit
7c615fa1d0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      card_person.cpp

+ 2 - 0
card_person.cpp

@@ -255,6 +255,8 @@ void person::handle_message(uint16_t ct,uint8_t &value)
             if(v>0)m_card_generation=2;
             else m_card_generation=1;
         }
+        //没判定结果之前使用之前的状态
+        value=m_pwr_stat; 
         return;
     }
     //老卡