|
@@ -27,6 +27,14 @@
|
27
|
27
|
#include "../runout.h"
|
28
|
28
|
#endif
|
29
|
29
|
|
|
30
|
+#if SERIAL_USB
|
|
31
|
+ #define MMU_RX_SIZE 256
|
|
32
|
+ #define MMU_TX_SIZE 256
|
|
33
|
+#else
|
|
34
|
+ #define MMU_RX_SIZE 16
|
|
35
|
+ #define MMU_TX_SIZE 16
|
|
36
|
+#endif
|
|
37
|
+
|
30
|
38
|
struct E_Step;
|
31
|
39
|
|
32
|
40
|
class MMU2 {
|
|
@@ -79,7 +87,7 @@ private:
|
79
|
87
|
static volatile bool finda_runout_valid;
|
80
|
88
|
static int16_t version, buildnr;
|
81
|
89
|
static millis_t last_request, next_P0_request;
|
82
|
|
- static char rx_buffer[16], tx_buffer[16];
|
|
90
|
+ static char rx_buffer[MMU_RX_SIZE], tx_buffer[MMU_TX_SIZE];
|
83
|
91
|
|
84
|
92
|
static inline void set_runout_valid(const bool valid) {
|
85
|
93
|
finda_runout_valid = valid;
|