From 8db7bde6e58c9aecdb015a696b1006bb8f060c45 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Mon, 6 Apr 2020 17:50:17 +0200 Subject: [PATCH] Remove bootloader countdown and change timeout to 3s --- fantemp/terminal.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fantemp/terminal.hpp b/fantemp/terminal.hpp index bb22a6e..83b0e55 100644 --- a/fantemp/terminal.hpp +++ b/fantemp/terminal.hpp @@ -154,7 +154,7 @@ class Terminal { m_serial << detail::SHOW_CMD << F(" .......: shows current temperature and fan speed") << detail::ENDL; m_serial << detail::CURVE_CMD << F(" ......: shows mapping from temperature to fan speed") << detail::ENDL; m_serial << detail::MONITOR_CMD << F(" ....: loops the show command until Ctrl + C is pressed") << detail::ENDL; - m_serial << detail::BOOTLOADER_CMD << F(" .: enters the bootloader after 10 seconds") << detail::ENDL; + m_serial << detail::BOOTLOADER_CMD << F(" .: enters the bootloader after 3 seconds") << detail::ENDL; m_serial << detail::VERSION_CMD << F(" ....: displays firmware version") << detail::ENDL; } @@ -186,15 +186,10 @@ class Terminal { static void handleBootloader() { - for (int8_t i = 10; i >= 0; --i) { - m_serial << i << detail::ENDL; - _delay_ms(1000); - } - m_serial << F("Entering bootloader...") << detail::ENDL; m_serial.flushTx(); - _delay_ms(1000); + _delay_ms(3000); Bootloader::enter(); }