Remove bootloader countdown and change timeout to 3s
This commit is contained in:
parent
508f139f47
commit
8db7bde6e5
@ -154,7 +154,7 @@ class Terminal {
|
|||||||
m_serial << detail::SHOW_CMD << F(" .......: shows current temperature and fan speed") << detail::ENDL;
|
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::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::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;
|
m_serial << detail::VERSION_CMD << F(" ....: displays firmware version") << detail::ENDL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,15 +186,10 @@ class Terminal {
|
|||||||
|
|
||||||
static void handleBootloader()
|
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 << F("Entering bootloader...") << detail::ENDL;
|
||||||
m_serial.flushTx();
|
m_serial.flushTx();
|
||||||
|
|
||||||
_delay_ms(1000);
|
_delay_ms(3000);
|
||||||
|
|
||||||
Bootloader::enter();
|
Bootloader::enter();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user