Retract landing gear on ground (FW)

Hello everyone,

I have a very specific question:
I would like to be able to extract/retract the landing gear on the ground. Before, when testing, the error “Landed, unable to retract landing gear”, came up.

I tried to fix this by suppresing lines2456 to 2464 in the Commander.cpp file:

I put the file on the SD card and reloaded my firmware, which suppressed the message as intended.
From my understanding of the code, suppressing above mentioned lines should have solved my problem. However, the gear still isn’t controllable.

Has anybody an idea how to control the gear when on ground?

Thanks,
Lukas