Skip to content

Commit 8ab091f

Browse files
committed
Mix format charlists
1 parent 5ee480a commit 8ab091f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/uart/enumerator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Circuits.UART.Enumerator do
22
@moduledoc false
33

44
def enumerate() do
5-
executable = :code.priv_dir(:circuits_uart) ++ '/circuits_uart'
5+
executable = :code.priv_dir(:circuits_uart) ++ ~c"/circuits_uart"
66

77
port =
88
Port.open({:spawn_executable, executable}, [

test/basic_uart_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ defmodule BasicUARTTest do
5858
assert :ok = UART.open(uart1, UARTTest.port1(), active: false)
5959
assert :ok = UART.open(uart2, UARTTest.port2(), active: false)
6060

61-
assert :ok = UART.write(uart1, 'B')
61+
assert :ok = UART.write(uart1, ~c"B")
6262
assert {:ok, "B"} = UART.read(uart2)
6363

64-
assert :ok = UART.write(uart1, ['AB', ?C, 'D', "EFG"])
64+
assert :ok = UART.write(uart1, [~c"AB", ?C, ~c"D", "EFG"])
6565

6666
# Wait for everything to be received in one call
6767
:timer.sleep(100)

0 commit comments

Comments
 (0)