Skip to content

[BUG] Compile fails with BABYSTEP_TICKS not declared in scope #16881

@viper93458

Description

@viper93458

Bug Description

Compile error of 2/16/2020 bugfix-2.0.x after enabling experimental INTEGRATED_BABYSTEPPING option:

Compiling .pio\build\BIGTREE_SKR_PRO\src\src\sd\usb_flashdrive\lib-uhs2\masstorage.cpp.o
Marlin\src\module\stepper.cpp: In static member function 'static void Stepper::isr()':
Marlin\src\module\stepper.cpp:1376:30: error: 'BABYSTEP_TICKS' was not declared in this scope
         NOLESS(nextMainISR, (BABYSTEP_TICKS) / 8)       // FULL STOP for 125µs after a baby-step
                              ^~~~~~~~~~~~~~
Marlin\src\module\stepper.cpp:1376:30: note: suggested alternative: 'BABYSTEP_AXIS'
         NOLESS(nextMainISR, (BABYSTEP_TICKS) / 8)       // FULL STOP for 125µs after a baby-step
                              ^~~~~~~Compiling .pio\build\BIGTREE_SKR_PRO\src\src\sd\usb_flashdrive\lib-uhs2\message.cpp.o
~~~~~~~
                              BABYSTEP_AXIS
Marlin\src\module\stepper.cpp:1401:20: error: 'interval' was not declared in this scope
     nextMainISR -= interval;
Compiling .pio\build\BIGTREE_SKR_PRO\src\src\sd\usb_flashdrive\lib-uhs2\parsetools.cpp.o
                    ^~~~~~~~
Marlin\src\module\stepper.cpp:1401:20: note: suggested alternative: 'timeval'
     nextMainISR -= interval;
                    ^~~~~~~~
                    timeval
Marlin\src\module\stepper.cpp: In static member function 'static uint32_t Stepper::babystepping_isr()':
Marlin\src\module\stepper.cpp:2074:14: error: request for member 'task' in 'Stepper::babystep', which is of non-class type 'void(AxisEnum, bool)'
     babystep.task();
              ^~~~
Marlin\src\module\stepper.cpp:2075:21: error: request for member 'has_steps' in 'Stepper::babystep', which is of non-class type 'void(AxisEnum, bool)'
     return babystep.has_steps() ? BABYSTEP_TICKS : BABYSTEP_NEVER;
                     ^~~~~~~~~
Marlin\src\module\stepper.cpp:2075:35: error: 'BABYSTEP_TICKS' was not declared in this scope
     return babystep.has_steps() ? BABYSTEP_TICKS : BABYSTEP_NEVER;
                                   ^~~~~~~~~~~~~~
Marlin\src\module\stepper.cpp:2075:35: note: suggested alternative: 'BABYSTEP_AXIS'
     return babystep.has_steps() ? BABYSTEP_TICKS : BABYSTEP_NEVER;
                                   ^~~~~~~~~~~~~~
                                   BABYSTEP_AXIS
*** [.pio\build\BIGTREE_SKR_PRO\src\src\module\stepper.cpp.o] Error 1
========================================================================= [FAILED] Took 18.28 seconds =========================================================================

image

Steps to Reproduce

  1. Load configs and compile with VSCode
  2. See error.

Expected behavior: [What you expect to happen]
Compile successfully

Actual behavior: [What actually happens]
Compile fails as shown in the description

Additional Information

Configs.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions