 .service('radio', [
   '$interval'
   ($interval) ->
+    radio = {}
     # whether or not we've initialized
     _init = false
+
+    radio.initialized = ->
+      return _init
 
     # thing
     _ndl3Radio = undefined

        time: now
        value: num
        })
    enableMock = (millis = 100) ->
      unless mock
        mock = true
        mockPromise = $interval(mockRadio, millis)

    _portPath = ''
    _serialPort = undefined

    radio.init = (radioAddr = "0013A20040A580C4", portPath = "/dev/ttyUSB0") ->
      _init = true
      _radioAddr = radioAddr

      _ndl3Radio.close() if _ndl3Radio?
      if requireNode?
        radio = requireNode('ndl3radio')
      else
        radio.enableMock()
        return

      _ndl3Radio = new radio.Radio()
