dasdsadas
void calc_energy_act(void)
{
char tar;
if(tempTar==0 || tempTar>MAXTAR){tar=1;}else{tar=tempTar;} //Protect
switch(tar)
{
case 1:
{
//vv = ((float)value * (float)(s_parameters.EnergyRatio)/((float)1000000*(float)3600));
//sprintf(ch,"%09f",vv);
e_act[T1]++;
if(e_act[T1] > 999999999){e_act[T1] = 0;} //9 999 999(.)999
break;
}
case 2:
{
e_act[T2]++;
if(e_act[T2] > 999999999){e_act[T2] = 0;}
break;
}
case 3:
{
e_act[T3]++;
if(e_act[T3] > 999999999){e_act[T3] = 0;}
break;
}
case 4:
{
e_act[T4]++;
if(e_act[T4] > 999999999){e_act[T4] = 0;}
break;
}
}
}
void calc_energy_act(void)
{
char tar;
if(tempTar==0 || tempTar>MAXTAR){tar=1;}else{tar=tempTar;} //Protect
switch(tar)
{
case 1:
{
//vv = ((float)value * (float)(s_parameters.EnergyRatio)/((float)1000000*(float)3600));
//sprintf(ch,"%09f",vv);
e_act[T1]++;
if(e_act[T1] > 999999999){e_act[T1] = 0;} //9 999 999(.)999
break;
}
case 2:
{
e_act[T2]++;
if(e_act[T2] > 999999999){e_act[T2] = 0;}
break;
}
case 3:
{
e_act[T3]++;
if(e_act[T3] > 999999999){e_act[T3] = 0;}
break;
}
case 4:
{
e_act[T4]++;
if(e_act[T4] > 999999999){e_act[T4] = 0;}
break;
}
}
}