Clean up spaces and words
This commit is contained in:
parent
e1cca6d97b
commit
46246c8db6
@ -990,14 +990,14 @@ void setup() {
|
|||||||
#endif
|
#endif
|
||||||
#define SETUP_RUN(C) do{ SETUP_LOG(STRINGIFY(C)); C; }while(0)
|
#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;
|
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
|
#if HAS_MULTI_SERIAL && !HAS_ETHERNET
|
||||||
MYSERIAL1.begin(BAUDRATE);
|
MYSERIAL2.begin(BAUDRATE);
|
||||||
serial_connect_timeout = millis() + 1000UL;
|
serial_connect_timeout = millis() + 1000UL;
|
||||||
while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
while (!MYSERIAL2.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
|
||||||
#endif
|
#endif
|
||||||
SERIAL_ECHOLNPGM("start");
|
SERIAL_ECHOLNPGM("start");
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ void GcodeSuite::M115() {
|
|||||||
// COOLER_TEMPERATURE (M143, M193)
|
// COOLER_TEMPERATURE (M143, M193)
|
||||||
cap_line(PSTR("COOLER_TEMPERATURE"), ENABLED(HAS_COOLER));
|
cap_line(PSTR("COOLER_TEMPERATURE"), ENABLED(HAS_COOLER));
|
||||||
|
|
||||||
// MEATPACK Compresson
|
// MEATPACK Compression
|
||||||
cap_line(PSTR("MEATPACK"), ENABLED(MEATPACK));
|
cap_line(PSTR("MEATPACK"), ENABLED(MEATPACK));
|
||||||
|
|
||||||
// Machine Geometry
|
// Machine Geometry
|
||||||
|
@ -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);
|
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);
|
const int a = SERIAL_IMPL.available(index);
|
||||||
#if BOTH(RX_BUFFER_MONITOR, RX_BUFFER_SIZE)
|
#if BOTH(RX_BUFFER_MONITOR, RX_BUFFER_SIZE)
|
||||||
if (a > RX_BUFFER_SIZE - 2) {
|
if (a > RX_BUFFER_SIZE - 2) {
|
||||||
@ -283,13 +283,15 @@ inline bool serial_data_available(serial_index_t index) {
|
|||||||
return a > 0;
|
return a > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if NO_TIMEOUTS > 0
|
||||||
// Multiserial already handles dispatch to/from multiple ports
|
// Multiserial already handles dispatch to/from multiple ports
|
||||||
inline bool any_serial_data_available() {
|
static bool any_serial_data_available() {
|
||||||
LOOP_L_N(p, NUM_SERIAL)
|
LOOP_L_N(p, NUM_SERIAL)
|
||||||
if (serial_data_available(p))
|
if (serial_data_available(p))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
|
inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
|
||||||
|
|
||||||
|
@ -3337,12 +3337,11 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sanity Check for MEATPACK and BINARY_FILE_TRANSFER Features
|
* Sanity Check for MEATPACK and BINARY_FILE_TRANSFER Features
|
||||||
*/
|
*/
|
||||||
#if BOTH(MEATPACK, BINARY_FILE_TRANSFER)
|
#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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -237,7 +237,7 @@
|
|||||||
* This board does not have dedicated TMC UART pins. Custom wiring is needed.
|
* 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.
|
* 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.
|
* MSerial0 or MSerial1.
|
||||||
*
|
*
|
||||||
* When using TMC2208 or more than four drivers, SoftwareSerial will be needed,
|
* When using TMC2208 or more than four drivers, SoftwareSerial will be needed,
|
||||||
|
Loading…
Reference in New Issue
Block a user