Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

correct issue where fast firmware uploads could retry #17

Merged

Conversation

jschall
Copy link
Contributor

@jschall jschall commented Jul 22, 2017

No description provided.

Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Jonathan, please see my feedback.

success()

def on_node_status(e):
if e.transfer.source_node_id == self._target_node_id and e.message.mode == e.message.MODE_SOFTWARE_UPDATE and e.message.health < e.message.HEALTH_ERROR:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines should not be longer than 120 characters, this one is noncompliant. See https://kb.zubax.com/x/_oAh

@@ -305,6 +333,7 @@ def send_request():
except Exception as ex:
show_error('Firmware update error', 'Could not send firmware update request', ex, self)

node_status_handle = self._node.add_handler(uavcan.protocol.NodeStatus, on_node_status)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who removes the handle in the event of an unsuccessful completion or a timeout?

@pavel-kirienko pavel-kirienko merged commit 4b8e696 into OpenCyphal-Garage:develop Jul 26, 2017
@pavel-kirienko
Copy link
Member

Thanks @jschall

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants