Skip to content

Commit

Permalink
Send CRC regardless of transport mode (#14)
Browse files Browse the repository at this point in the history
Fixes issue with newer 1.9.x firmwares.
  • Loading branch information
electricshaman authored Apr 11, 2017
1 parent 26aca35 commit 3987afb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tm_mercury/reader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ defmodule TM.Mercury.Reader do
with {:ok, version} <- execute(ts, rdr, :version),
# Pick up the model first for any downstream encoding/decoding that needs it
reader = Map.put(rdr, :model, version.model),
# Send CRC regardless of transport mode
:ok <- execute(ts, reader, [:set_reader_optional_params, :send_crc, true]),
:ok <- execute(ts, reader, [:set_region, reader.region]),
:ok <- execute(ts, reader, [:set_power_mode, reader.power_mode]),
:ok <- execute(ts, reader, [:set_tag_protocol, reader.tag_protocol]),
Expand Down

0 comments on commit 3987afb

Please sign in to comment.