Shouldn't there be protective diodes "somewhere" whenever a motor is used?

I don't really get how that motor is wired. I would expect a pulse method, but the code is constant on for 5 seconds.

Admittedly confused.

Robert