From e985d17bd11a35cecf162db8f4e1e6a3c3b52b89 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Wed, 27 May 2020 10:16:44 +0300 Subject: [PATCH] Document code --- Firmware/optiboot_w25x20cl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/optiboot_w25x20cl.cpp b/Firmware/optiboot_w25x20cl.cpp index 7cc44801f..231e7760a 100644 --- a/Firmware/optiboot_w25x20cl.cpp +++ b/Firmware/optiboot_w25x20cl.cpp @@ -99,6 +99,8 @@ struct block_t; extern struct block_t *block_buffer; //! @brief Enter an STK500 compatible Optiboot boot loader waiting for flashing the languages to an external flash memory. +//! @return 1 if "start\n" was not sent. Optiboot was skipped +//! @return 0 if "start\n" was sent. Optiboot ran normally. No need to send "start\n" in setup() uint8_t optiboot_w25x20cl_enter() { if (boot_app_flags & BOOT_APP_FLG_USER0) return 1;