def cmd_watch(args):
 if (len(args) == 0):
  mpstate.status.watch = None
  return
 mpstate.status.watch = args[0]
 print ('Watching %s' % mpstate.status.watch)

def cmd_watch ( args ) : if ( len ( args ) == 0 ) : mpstate . status . watch = None return mpstate . status . watch = args [ 0 ] print ( 'Watching %s' % mpstate . status . watch )
watch a mavlink packet pattern .