From 6abe343f04837676d6927a5701849a2f911cd885 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 20 May 2015 15:19:51 +0300 Subject: [PATCH] FirmwareUpdateTrigger handleFirmwareUpdateConfirmation() made optional --- .../include/uavcan/protocol/firmware_update_trigger.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/protocol/firmware_update_trigger.hpp b/libuavcan/include/uavcan/protocol/firmware_update_trigger.hpp index 7380be1d9d..9bea80eaca 100644 --- a/libuavcan/include/uavcan/protocol/firmware_update_trigger.hpp +++ b/libuavcan/include/uavcan/protocol/firmware_update_trigger.hpp @@ -80,12 +80,18 @@ public: * This node is invoked when the node responds to the update request with confirmation. * Note that if by the time of arrival of the response the node is already removed, this method will not be called. * + * Implementation is optional; default one does nothing. + * * @param node_id Node ID that confirmed the request. * * @param response Actual response. */ virtual void handleFirmwareUpdateConfirmation(NodeID node_id, - const protocol::file::BeginFirmwareUpdate::Response& response) = 0; + const protocol::file::BeginFirmwareUpdate::Response& response) + { + (void)node_id; + (void)response; + } virtual ~IFirmwareVersionChecker() { } };