check notify

This commit is contained in:
alan
2019-10-14 17:27:10 +08:00
parent 0859f6da6d
commit 31f03582a3
@@ -547,7 +547,7 @@ static int32_t DecodeADCValue(uint8_t ADCGain, uint8_t ADCChannel, uint8_t *ADC_
int32_t ADCRealVolt = 0, ret = 0, ADCRealCurrent = 0, ADCRealResister = 0;
// return real volt to controller
if(ADCChannel == ADC_CH_VOLT){
if(ADCChannel == ADC_CH_VOLT){12
ADCRealVolt = DecodeADCVolt(ADC_measure);
NotifyVolt[0] = (uint8_t) (ADCRealVolt >> 24);
NotifyVolt[1] = (uint8_t) ((ADCRealVolt & 0x00FF0000) >> 16);