Skip to content

Commit 23f0b16

Browse files
authored
Merge pull request #83 from BlueAndi/bugfix/bootloaderConfirmation
Bootloader mode confirmation
2 parents 10806c3 + 619fc92 commit 23f0b16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/HALTarget/src/USBHost.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void USBHost::reset()
285285

286286
bool USBHost::isBootloaderModeActive() const
287287
{
288-
return m_isBootloaderModeActive;
288+
return ((true == m_isBootloaderModeActive) && (true == m_acm.isReady()));
289289
}
290290

291291
/******************************************************************************

lib/HALTarget/src/USBHost.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class USBHost : public Stream
203203
ACMAsyncOper m_asyncOper;
204204

205205
/** Instance of ACM */
206-
ACM m_acm;
206+
mutable ACM m_acm;
207207

208208
/** RX Queue */
209209
QueueHandle_t m_rxQueue;

0 commit comments

Comments
 (0)