MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / saveSleepFrameBuffer

Function saveSleepFrameBuffer

src/main.cpp:215–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213constexpr char SLEEP_FRAME_FILE[] = "/.crosspoint/sleep_frame.bin";
214
215static void saveSleepFrameBuffer() {
216 HalFile file;
217 if (!Storage.openFileForWrite("SLP", SLEEP_FRAME_FILE, file)) return;
218 file.write(renderer.getFrameBuffer(), renderer.getBufferSize());
219 file.close();
220}
221
222static bool loadSleepFrameBuffer() {
223 HalFile file;

Callers 1

enterDeepSleepFunction · 0.85

Calls 5

openFileForWriteMethod · 0.80
writeMethod · 0.45
getFrameBufferMethod · 0.45
getBufferSizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected