#include <gcode_thumb_decoder.h>
◆ Instance()
◆ Read()
int GCodeThumbDecoder::Read |
( |
FIL * |
f, |
|
|
char * |
pc, |
|
|
int |
n |
|
) |
| |
72 static const size_t MAX_READ_LINES = 2048;
74 case States::Searching: {
79 if (!ReadLine(f, l)) {
85 state = States::Error;
89 state = States::Base64;
93 if (
state != States::Base64) {
95 state = States::Error;
100 case States::Base64: {
110 if (!ReadLine(f, l)) {
111 state = States::Error;
118 state = States::Error;
126 }
else if (LineIsBase64(l, bytesQ)) {
130 state = States::Error;
◆ Reset()
void GCodeThumbDecoder::Reset |
( |
| ) |
|
159 state = States::Searching;