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

Method read

libraries/FRAM_I2C/FRAM_RINGBUFFER.cpp:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96
97int FRAM_RINGBUFFER::read()
98{
99 if (empty()) return FRAM_RB_ERR_BUF_EMPTY;
100 int value = _fram->read8(_tail);
101 _saved = false;
102 _tail++;
103 _count--;
104 if (_tail >= _start + _size) _tail = _start;
105 return value;
106}
107
108
109int FRAM_RINGBUFFER::peek()

Callers

nothing calls this directly

Calls 1

read8Method · 0.45

Tested by

no test coverage detected