Skip to content

Commit c5cfe3a

Browse files
committed
Fix EspRtcMemory formatting
Signed-off-by: Peter M <petermm@gmail.com>
1 parent 5940c0c commit c5cfe3a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

elixir/EspRtcMemory/lib/esp_rtc_memory.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ defmodule EspRtcMemory do
8383
|> :esp.rtc_slow_set_binary()
8484
end
8585

86-
defp increment_state(%RebootState{count: count} = state) when is_integer(count) and count >= 0 do
86+
defp increment_state(%RebootState{count: count} = state)
87+
when is_integer(count) and count >= 0 do
8788
new_count = count + 1
8889
IO.puts("This device has restarted #{new_count} time(s).")
8990
%RebootState{state | count: new_count}
@@ -97,4 +98,3 @@ defmodule EspRtcMemory do
9798
defp verify_platform(:esp32), do: :ok
9899
defp verify_platform(platform), do: {:error, {:unsupported_platform, platform}}
99100
end
100-

elixir/EspRtcMemory/lib/reboot_state.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ defmodule RebootState do
2525

2626
defstruct count: 0
2727
end
28-

0 commit comments

Comments
 (0)