float voltage = 0.0F ;
// battery_get_voltage_by_channel(&voltage,channel);
uint8_t value = 0 ;
- uint8_t xts_testing = 0 ;
+ uint8_t xts_test_done = 0 ;
uint32_t RunTime_ = HALTick::GetInstance().GetTime();
#ifdef XTS_SUPPORT
- xts_testing = is_xts_test_done();
+ xts_test_done = is_xts_test_done();
#endif
- if(xts_testing){
- value = 0;
- printf("bat check stamp %u xts_testing %u\r\n",RunTime_,xts_testing);
+ if(xts_test_done){
+ value = battery_get_voltage(&voltage);
+ // printf("bat check stamp %u xts_test_done %u\r\n",RunTime_,xts_test_done);
return ;
}else{
- value = battery_get_voltage(&voltage);
- printf("bat check stamp %u xts_testing %u\r\n",RunTime_,xts_testing);
+ value = 0;
+ // printf("bat check stamp %u xts_test_done %u\r\n",RunTime_,xts_test_done);
}
char* progress1ForeImageSrc = nullptr;
char* progress1BackImageSrc = nullptr;