 
 
 
-	send = ( cmd, args... ) ->
+	send = ( data, args... ) ->
 		writeArgs = []
 		if args[1]
 			data = args[0]
 			callback = args[1]
-			writeArgs.push cmd
 			writeArgs.push data
 			writeCmd = 'writeBytes'
 		else


		writeArgs.push (error) ->
			callback()
			debug.log "Send", cmd
			debug.log "ERROR:", error if error

		wire[writeCmd] writeArgs...

			wire.writeByte CMD.mode, 1, -> # Switch to output

	ranger: ( port, callback ) ->
		send CMD.ranger, [port,0,0], ->
			receive port, 3, (data) ->
				callback data[2] + data[1]

