Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Lanziano <[email protected]>
  • Loading branch information
arpunk committed Mar 4, 2024
1 parent 57a7087 commit 9010243
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/c3card_gateway_command.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ handle_command({candy, Turn}) ->
noreply;
handle_command(ping) ->
spawn(fun() ->
c3card_neopixel:toggle_led(1, 120),
c3card_neopixel:clear_all()
end),
c3card_neopixel:toggle_led(1, 120),
c3card_neopixel:clear_all()
end),
{reply, pong};
handle_command(Command) ->
io:format("unknown command from gateway: ~p~n", [Command]),
Expand Down
12 changes: 6 additions & 6 deletions src/c3card_wifi.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ start(Config) ->
{synchronized, fun ntp_syncronized/1}]},
{sta, [{connected, fun connected/0},
{got_ip, fun(IpInfo) ->
got_ip(IpInfo),
Parent ! {ip, IpInfo}
end},
got_ip(IpInfo),
Parent ! {ip, IpInfo}
end},
{disconnected, fun disconnected/0},
{ssid, SSID},
{psk, Psk}]}],
case network:start(NetConfig) of
{ok, _Pid} ->
receive
{ip, IpInfo} -> {ok, IpInfo}
end;
receive
{ip, IpInfo} -> {ok, IpInfo}
end;
Error ->
?LOG_ERROR("an error happened: ~p", [Error]),
Error
Expand Down

0 comments on commit 9010243

Please sign in to comment.