Skip to content

Commit e90c117

Browse files
committed
samples: xbee network update: process more requests after one with no tasks
This commit fix a bug that was preventing to process update requests received after one with no tasks. Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent 4f8fe06 commit e90c117

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

samples/xbee/demos/NetworkUpdateSample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Supported platforms
196196

197197
License
198198
-------
199-
Copyright (c) 2021, Digi International, Inc.
199+
Copyright (c) 2021, 2022, Digi International, Inc.
200200

201201
Permission is hereby granted, free of charge, to any person obtaining a copy
202202
of this software and associated documentation files (the "Software"), to deal

samples/xbee/demos/NetworkUpdateSample/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, Digi International, Inc.
1+
# Copyright (c) 2021, 2022, Digi International, Inc.
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal
@@ -537,6 +537,7 @@ def _process_update_request(self, update_tasks):
537537
"""
538538
if not update_tasks:
539539
log.error("No update tasks to perform")
540+
self._request = None
540541
return
541542

542543
if log.isEnabledFor(logging.INFO):

0 commit comments

Comments
 (0)