Update mw.c

Failsafe detection for Minimosd