     end
   end
 
-  def open(_uart_pid, _device_path, _opts) do
-    # UartDefaultAdapter.open(uart_pid, device_path, opts)
-    :ok
+  def open(uart_pid, device_path, opts) do
+    UartDefaultAdapter.open(uart_pid, device_path, opts)
   end
 end

    {:noreply, state}
  end

  def handle_call(_code, _from, state) do
    # str = GCODE.encode(code)
    r = :ok
    # r = UartDefaultAdapter.write(state.uart, str)
    {:reply, r, state}
  end


    device = Keyword.fetch!(args, :device)
    handle_gcode = Keyword.fetch!(args, :handle_gcode)
    reset = Keyword.fetch!(args, :reset)
    {:ok, uart} = UartDefaultAdapter.start_link()

    {:ok,
     %{
