Skip to content

Commit 7317ce3

Browse files
author
CI
committed
Sync to GitHub
1 parent 6e0c492 commit 7317ce3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/bacnet/stack/transport/mstp_transport.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,12 +1346,13 @@ if Code.ensure_loaded?(Circuits.UART) do
13461346
local_address: local_addr,
13471347
disable_maintenance_pfm: true,
13481348
disable_token_passing: false,
1349-
state_machine: %{ns: ns, ps: ps, token_count: tokens} = state_machine
1349+
state_machine: %{ns: ns, ps: ps, ts: ts, token_count: tokens} = state_machine
13501350
} =
13511351
state
13521352
)
13531353
when local_addr < @min_slave_addr and
13541354
ns != rem(ps + 1, state.opts.max_master_address + 1) and
1355+
ns != ts and
13551356
tokens >= @param_n_poll - 1 do
13561357
log_debug(fn ->
13571358
"BacMstpTransport: Reached state DONE_WITH_TOKEN and skipping maintenance POLL_FOR_MASTER, " <>

0 commit comments

Comments
 (0)