|
@@ -147,10 +147,6 @@ uint8_t g_uc_extruder_last_move[EXTRUDERS] = { 0 };
|
147
|
147
|
static long axis_segment_time[2][3] = { {MAX_FREQ_TIME + 1, 0, 0}, {MAX_FREQ_TIME + 1, 0, 0} };
|
148
|
148
|
#endif
|
149
|
149
|
|
150
|
|
-#if ENABLED(FILAMENT_SENSOR)
|
151
|
|
- static char meas_sample; //temporary variable to hold filament measurement sample
|
152
|
|
-#endif
|
153
|
|
-
|
154
|
150
|
#if ENABLED(DUAL_X_CARRIAGE)
|
155
|
151
|
extern bool extruder_duplication_enabled;
|
156
|
152
|
#endif
|
|
@@ -857,7 +853,6 @@ float junction_deviation = 0.1;
|
857
|
853
|
|
858
|
854
|
#if ENABLED(FILAMENT_SENSOR)
|
859
|
855
|
//FMM update ring buffer used for delay with filament measurements
|
860
|
|
-
|
861
|
856
|
if (extruder == FILAMENT_SENSOR_EXTRUDER_NUM && delay_index2 > -1) { //only for extruder with filament sensor and if ring buffer is initialized
|
862
|
857
|
|
863
|
858
|
const int MMD = MAX_MEASUREMENT_DELAY + 1, MMD10 = MMD * 10;
|
|
@@ -870,7 +865,7 @@ float junction_deviation = 0.1;
|
870
|
865
|
delay_index1 = constrain(delay_index1, 0, MAX_MEASUREMENT_DELAY); // (already constrained above)
|
871
|
866
|
|
872
|
867
|
if (delay_index1 != delay_index2) { // moved index
|
873
|
|
- meas_sample = widthFil_to_size_ratio() - 100; // Subtract 100 to reduce magnitude - to store in a signed char
|
|
868
|
+ int8_t meas_sample = widthFil_to_size_ratio() - 100; // Subtract 100 to reduce magnitude - to store in a signed char
|
874
|
869
|
while (delay_index1 != delay_index2) {
|
875
|
870
|
// Increment and loop around buffer
|
876
|
871
|
if (++delay_index2 >= MMD) delay_index2 -= MMD;
|