We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10806c3 + 619fc92 commit 23f0b16Copy full SHA for 23f0b16
lib/HALTarget/src/USBHost.cpp
@@ -285,7 +285,7 @@ void USBHost::reset()
285
286
bool USBHost::isBootloaderModeActive() const
287
{
288
- return m_isBootloaderModeActive;
+ return ((true == m_isBootloaderModeActive) && (true == m_acm.isReady()));
289
}
290
291
/******************************************************************************
lib/HALTarget/src/USBHost.h
@@ -203,7 +203,7 @@ class USBHost : public Stream
203
ACMAsyncOper m_asyncOper;
204
205
/** Instance of ACM */
206
- ACM m_acm;
+ mutable ACM m_acm;
207
208
/** RX Queue */
209
QueueHandle_t m_rxQueue;
0 commit comments