Compiling Error I cant figure out

Afternoon Ladies and Gentlemen,

Im hoping someone can help. I’m having 1 compiling error that is stopping it from completing and i cant for the life of me figure out why.

I’m running an Ender 3 Pro and I’ve just upgraded the board with a BTT SKR E3 v3 so I’m compiling a new firmware using Marlin 2.1.x Bugfix. I’m also using the example configurations from Marlins directory. Im also following the guide from makenprint.uk for my board and screen.

I think the issue is something to do with my BLTouch setting. I’m using a legit BLTouch v3.1 wired into the dedicated connection on the BTT Board if that helps.

Finally, here is the end of the compiler having a heart attack:

In file included from Marlin\src\feature\bltouch.cpp:39:

Marlin\src\feature\bltouch.cpp: In static member function ‘static bool BLTouch::triggered()’:

Marlin\src\feature../module/probe.h:47:55: error: ‘Z_MIN_PROBE_ENDSTOP_INVERTING’ was not declared in this scope; did you mean ‘Z_MIN_PROBE_ENDSTOP_HIT_STATE’?

47 | #define PROBE_TRIGGERED() (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING)

| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Marlin\src\feature\bltouch.cpp:96:36: note: in expansion of macro ‘PROBE_TRIGGERED’

96 | bool BLTouch::triggered() { return PROBE_TRIGGERED(); }

| ^~~~~~~~~~~~~~~

Compiling .pio\build\STM32G0B1RE_btt\src\src\gcode\bedlevel\abl\G29.cpp.o

****** [.pio\build\STM32G0B1RE_btt\src\src\feature\bltouch.cpp.o] Error 1***

Any help would be appreciated before i tear the remainder of my hair out :slight_smile:

I think I know what’s wrong but 45x45 Jason Leader will soon kick me out because of her low self-esteem. Stupid!

So many things wrong in that statement.