Allow Serial Overrun Protection to be disabled

This commit is contained in:
Scott Lahteine
2018-11-23 21:05:59 -06:00
parent 29c53f2402
commit 1fcc13b011
65 changed files with 283 additions and 29 deletions

View File

@ -25,8 +25,18 @@
constexpr char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
// Delay that ensures heaters and watchdog are kept alive
void safe_delay(millis_t ms);
// A delay to provide brittle hosts time to receive bytes
inline void serial_delay(const millis_t ms) {
#if ENABLED(SERIAL_OVERRUN_PROTECTION)
safe_delay(ms);
#else
UNUSED(ms);
#endif
}
#if ENABLED(EEPROM_SETTINGS) || ENABLED(SD_FIRMWARE_UPDATE)
void crc16(uint16_t *crc, const void * const data, uint16_t cnt);
#endif