Skip to content

Commit

Permalink
Fix fwup progress printout
Browse files Browse the repository at this point in the history
This gets rid of logs like this:

```
20:29:41.202 [warn]  Unknown FWUP message: {:progress, 54}
```
  • Loading branch information
fhunleth authored and jjcarstens committed May 14, 2020
1 parent 7ee613f commit 654a8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerves_hub_link/client/default.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule NervesHubLink.Client.Default do
def update_available(_), do: :apply

@impl NervesHubLink.Client
def handle_fwup_message({:progress, percent}) when rem(percent, 25) == 0 do
def handle_fwup_message({:progress, percent}) do
Logger.debug("FWUP PROG: #{percent}%")
end

Expand Down

0 comments on commit 654a8d0

Please sign in to comment.