MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / clear

Method clear

libraries/Histogram/histogram.cpp:32–36  ·  view source on GitHub ↗

resets all counters to value (default 0)

Source from the content-addressed store, hash-verified

30
31// resets all counters to value (default 0)
32void Histogram::clear(int32_t value)
33{
34 for (uint16_t i = 0; i < _length; i++) _data[i] = value;
35 _count = 0;
36}
37
38
39void Histogram::setBucket(const uint16_t index, int32_t value)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36