Skip to content

Commit e77a910

Browse files
committed
firmware: do not reconfigure SP and SN values for P2MP updates
Point-to-multipoint protocol does not support SN and SP settings, so do not try to reconfigure them while performing a firmware update operation in modules running this protocol. Signed-off-by: David Escalona <david.escalona@digi.com>
1 parent 8cfbf86 commit e77a910

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

digi/xbee/firmware.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,9 @@ def _prepare_node_for_update(self, restore_later=True):
19541954
return
19551955
except XBeeException as exc:
19561956
_log.info("Unable to read '%s' configuration: %s", self._xbee, str(exc))
1957+
elif self._xbee.get_protocol() == XBeeProtocol.DIGI_POINT:
1958+
# P2MP does not require settings preparation
1959+
return
19571960

19581961
default_sp = self._get_min_value(ATStringCommand.SP, self._xbee.get_protocol())
19591962
default_sn = self._get_min_value(ATStringCommand.SN, self._xbee.get_protocol())

0 commit comments

Comments
 (0)