Skip to content

Commit

Permalink
Run mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
mnishiguchi committed Jan 17, 2024
1 parent 6bc562c commit 3a6eef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sgp40/voc_index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ defmodule SGP40.VocIndex do

defp receive_from_port(port) do
receive do
{^port, {:data, {_, 'OK: ' ++ response}}} ->
{^port, {:data, {_, ~c"OK: " ++ response}}} ->
{:ok, to_string(response)}

{^port, {:data, {_, 'OK'}}} ->
{^port, {:data, {_, ~c"OK"}}} ->
:ok

{^port, {:data, {_, 'ERR: ' ++ response}}} ->
{^port, {:data, {_, ~c"ERR: " ++ response}}} ->
{:error, to_string(response)}

{^port, {:exit_status, exit_status}} ->
Expand Down

0 comments on commit 3a6eef5

Please sign in to comment.