23 lines
363 B
C
23 lines
363 B
C
|
|
#include "chargControl.h"
|
|
#include "parameter.h"
|
|
#include "comm_types.h"
|
|
|
|
void chargControl(void)
|
|
{
|
|
getCVData();
|
|
judgeYNBattery();
|
|
|
|
chargControlMode();
|
|
|
|
if (g_otherParameter.MPPT_Mode == noWork) {
|
|
return;
|
|
}
|
|
|
|
if (g_otherParameter.batteryState) {
|
|
BatteryChargControl();
|
|
} else {
|
|
noBatteryChargControl();
|
|
}
|
|
}
|