batConsumptionClear (function)

Top  Previous  Next

Architecture:

X32

Device support:

SX1

Firmware version:

2.70


This function will reset the average current consumption (see batConsumptionAvg) and the total current consumption (see batConsumptionTotal), so that both values will be set to zero.

 

 

Input:

None.

 

Returns:

None.

 

Declaration:

FUNCTION batConsumptionClear;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
 
BEGIN
  ...
  // Clear the current consumption
  batConsumptionClear();
  ...
END;
END_PROGRAM;