mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 20:52:12 -04:00
protect serial asyncmsg with indicate to prevent halt (#2272)
This commit is contained in:
parent
b19ed5fec5
commit
b43eaa8786
3 changed files with 20 additions and 17 deletions
|
@ -61,7 +61,7 @@ class UsbSerialAsyncmsg {
|
|||
// ussgae: UsbSerialAsyncmsg::asyncmsg(vec);
|
||||
template <typename VECTORCOVER>
|
||||
void UsbSerialAsyncmsg::asyncmsg(const std::vector<VECTORCOVER>& data) {
|
||||
if (!portapack::async_tx_enabled) {
|
||||
if (!portapack::async_tx_enabled || !portapack::usb_serial.serial_connected()) {
|
||||
return;
|
||||
}
|
||||
for (const auto& item : data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue