mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Remove redundant serial sanity check
This commit is contained in:
parent
ce6a691999
commit
1aea024589
@ -87,17 +87,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef USBCON
|
#ifndef USBCON
|
||||||
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
|
||||||
#error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !IS_POWER_OF_2(RX_BUFFER_SIZE) || RX_BUFFER_SIZE < 2
|
|
||||||
#error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
|
||||||
#error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if RX_BUFFER_SIZE > 256
|
#if RX_BUFFER_SIZE > 256
|
||||||
typedef uint16_t ring_buffer_pos_t;
|
typedef uint16_t ring_buffer_pos_t;
|
||||||
|
@ -260,13 +260,9 @@
|
|||||||
#ifndef USBCON
|
#ifndef USBCON
|
||||||
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
||||||
#error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
#error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
||||||
#endif
|
#elif RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
|
||||||
|
|
||||||
#if RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
|
|
||||||
#error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
#error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
||||||
#endif
|
#elif TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
||||||
|
|
||||||
#if TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
|
||||||
#error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
#error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
||||||
#endif
|
#endif
|
||||||
#elif ENABLED(SERIAL_XON_XOFF)
|
#elif ENABLED(SERIAL_XON_XOFF)
|
||||||
|
@ -1089,7 +1089,7 @@ void Planner::_buffer_steps(const int32_t (&target)[XYZE], float fr_mm_s, const
|
|||||||
float max_stepper_speed = 0, min_axis_accel_ratio = 1; // ratio < 1 means acceleration ramp needed
|
float max_stepper_speed = 0, min_axis_accel_ratio = 1; // ratio < 1 means acceleration ramp needed
|
||||||
LOOP_XYZE(i) {
|
LOOP_XYZE(i) {
|
||||||
const float cs = FABS((current_speed[i] = delta_mm[i] * inverse_secs));
|
const float cs = FABS((current_speed[i] = delta_mm[i] * inverse_secs));
|
||||||
if (cs > max_jerk[i])
|
if (cs > max_jerk[i])
|
||||||
NOMORE(min_axis_accel_ratio, max_jerk[i] / cs);
|
NOMORE(min_axis_accel_ratio, max_jerk[i] / cs);
|
||||||
NOLESS(max_stepper_speed, cs);
|
NOLESS(max_stepper_speed, cs);
|
||||||
#if ENABLED(DISTINCT_E_FACTORS)
|
#if ENABLED(DISTINCT_E_FACTORS)
|
||||||
|
Loading…
Reference in New Issue
Block a user