// PRINT("*voltage : %.3f \n",*voltage);
// PRINT("DecimalPart_1 : %d , DecimalPart_2 : %d DecimalPart_3 : %d \n",DecimalPart_1,DecimalPart_2,DecimalPart_3);
uint16_t value = DecimalPart_1 << 8 | DecimalPart_2 << 4 | DecimalPart_3 << 0;
- uapi_save_runtime_log(RUNTIME_LOG_BAT_VOL | value);
+
+ if(IntPart == 4)
+ uapi_save_runtime_log(RUNTIME_LOG_BAT_VOL_HIGH | value);
+ else
+ uapi_save_runtime_log(RUNTIME_LOG_BAT_VOL_LOW | value);
// PRINT("RUNTIME_LOG_BAT_VOL | value : %x \n",RUNTIME_LOG_BAT_VOL | value);
if(percernt_installized)
{
*@Author:luozheng 1732036298@qq.com
*@Date:2024-12-18 10:27:52
* @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2024-12-21 19:40:03
+ * @LastEditTime: 2024-12-23 11:08:01
*@FilePath:/FD230/code/sdk/drivers/peripheral/utils/custom_save_runtime.h
*/
/**
RUNTIME_LOG_VOTE_ID =0x1300,
//电压变化
- RUNTIME_LOG_BAT_VOL =0xf000,
+ RUNTIME_LOG_BAT_VOL_LOW = 0xE000, //3V
+ RUNTIME_LOG_BAT_VOL_HIGH =0xf000, //4V
} runtime_log_cmd_Id;