Clean up spaces and words

This commit is contained in:
Scott Lahteine 2021-03-10 11:35:19 -06:00
parent e1cca6d97b
commit 46246c8db6
5 changed files with 26 additions and 25 deletions

View file

@ -990,14 +990,14 @@ void setup() {
#endif
#define SETUP_RUN(C) do{ SETUP_LOG(STRINGIFY(C)); C; }while(0)
MYSERIAL0.begin(BAUDRATE);
MYSERIAL1.begin(BAUDRATE);
millis_t serial_connect_timeout = millis() + 1000UL;
while (!MYSERIAL0.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
#if HAS_MULTI_SERIAL && !HAS_ETHERNET
MYSERIAL1.begin(BAUDRATE);
MYSERIAL2.begin(BAUDRATE);
serial_connect_timeout = millis() + 1000UL;
while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
while (!MYSERIAL2.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
#endif
SERIAL_ECHOLNPGM("start");

View file

@ -144,7 +144,7 @@ void GcodeSuite::M115() {
// COOLER_TEMPERATURE (M143, M193)
cap_line(PSTR("COOLER_TEMPERATURE"), ENABLED(HAS_COOLER));
// MEATPACK Compresson
// MEATPACK Compression
cap_line(PSTR("MEATPACK"), ENABLED(MEATPACK));
// Machine Geometry

View file

@ -272,7 +272,7 @@ void GCodeQueue::flush_and_request_resend(const serial_index_t serial_ind) {
SERIAL_ECHOLN(serial_state[serial_ind.index].last_N + 1);
}
inline bool serial_data_available(serial_index_t index) {
static bool serial_data_available(serial_index_t index) {
const int a = SERIAL_IMPL.available(index);
#if BOTH(RX_BUFFER_MONITOR, RX_BUFFER_SIZE)
if (a > RX_BUFFER_SIZE - 2) {
@ -283,13 +283,15 @@ inline bool serial_data_available(serial_index_t index) {
return a > 0;
}
// Multiserial already handles dispatch to/from multiple ports
inline bool any_serial_data_available() {
#if NO_TIMEOUTS > 0
// Multiserial already handles dispatch to/from multiple ports
static bool any_serial_data_available() {
LOOP_L_N(p, NUM_SERIAL)
if (serial_data_available(p))
return true;
return false;
}
}
#endif
inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }

View file

@ -3337,12 +3337,11 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
#endif
#endif
/**
* Sanity Check for MEATPACK and BINARY_FILE_TRANSFER Features
*/
#if BOTH(MEATPACK, BINARY_FILE_TRANSFER)
#error "Either enable MEATPACK or enable BINARY_FILE_TRANSFER."
#error "Either enable MEATPACK or BINARY_FILE_TRANSFER, not both."
#endif
/**

View file

@ -237,7 +237,7 @@
* This board does not have dedicated TMC UART pins. Custom wiring is needed.
* You may uncomment one of the options below, or add it to your Configuration.h.
*
* When using up to four TMC2209 drivers, hardware serial is recommented on
* When using up to four TMC2209 drivers, hardware serial is recommended on
* MSerial0 or MSerial1.
*
* When using TMC2208 or more than four drivers, SoftwareSerial will be needed,