Thank you very much for this excellent suggestion.You say that the landing gear takes ~10 seconds to extend/retract. And in certain circumstances the motor stalls or binds for a short time mid-deployment. And it is more important to extend the landing gear than protecting the motor from burning up.
So I would consider a partial software solution. Do not check for a stall until after an ~8 second delay. Or some such value determined by experimentation.
That way, intermediate behavior is ignored and the check for full deployment only takes place at the end of it's expected time.
Actually I do not want to burn the motor. I can land the plane without the landing gear extended.
This timing solution has also some drawbacks. Let's say I have set 9 seconds as limit and I only check the current after 9 seconds. During normal operation this will be OK. But let's say that I have accidentally put the switch to the extended position in the air. After 2 seconds I have noticed this mistake and put the switch back to the retracted position. First the gear will begin to extend. After 2 seconds it will begin to retract and the 9 seconds timeout will start over. After 2 seconds it will be fully retracted and the motor will stall. The stall will continue for 7 seconds and the motor will probably burn out.
I am trying to find a way to reliably sense the full extended and full retracted position but until I am able to do so I need the current monitoring.


