Clear sensor read event in mag command
only send command sensor read if in command mode
Removed old commented code
Fixed command sensor read event name