Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #157 from shalak/add_upload_finished_message
Browse files Browse the repository at this point in the history
Add 'finished' message to Thread DFU
  • Loading branch information
bihanssen authored Sep 5, 2018
2 parents 410149f + bc72182 commit 46535c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nordicsemi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def thread(package, port, address, server_port, panid, channel, jlink_snr, flash
click.echo("Waiting for NCP to promote to a router...")
time.sleep(6.0)
dfu.trigger(address, 3)
click.echo("Thread DFU server is running... Press <Ctrl + C> to stop.")
click.echo("Thread DFU server is running... Press <Ctrl + D> to stop.")
pause()
click.echo("Terminating")

Expand Down
2 changes: 2 additions & 0 deletions nordicsemi/thread/dfu_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ def _multicast_upload(self, remote, num_of_requests):
if (self.opts.reset_suppress > 0):
self._send_reset_request(remote, num_of_requests, self.opts.reset_suppress)

logger.info("Thread DFU upload complete")

def _send_trigger(self, remote, num_of_requests):
logger.info('Triggering DFU on {}'.format(remote))
request = piccata.message.Message(mtype = piccata.constants.NON,
Expand Down

0 comments on commit 46535c0

Please sign in to comment.