Add "End Repeat Loops" menu item

This commit is contained in:
Scott Lahteine
2020-12-23 20:22:58 -06:00
parent 4d6b6bcffc
commit f0c29afe21
3 changed files with 14 additions and 0 deletions

View File

@ -39,6 +39,10 @@ private:
static uint8_t index;
public:
static inline void reset() { index = 0; }
static inline bool is_active() {
LOOP_L_N(i, index) if (marker[i].counter) return true;
return false;
}
static bool is_command_M808(char * const cmd) { return cmd[0] == 'M' && cmd[1] == '8' && cmd[2] == '0' && cmd[3] == '8' && !NUMERIC(cmd[4]); }
static void early_parse_M808(char * const cmd);
static void add_marker(const uint32_t sdpos, const uint16_t count);