diff --git a/firmware/application/usb_serial_asyncmsg.cpp b/firmware/application/usb_serial_asyncmsg.cpp index e00c1450..a41a83c7 100644 --- a/firmware/application/usb_serial_asyncmsg.cpp +++ b/firmware/application/usb_serial_asyncmsg.cpp @@ -132,3 +132,13 @@ void UsbSerialAsyncmsg::asyncmsg(const char* data) { } chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data); } + +/// bool +template <> +// usage: UsbSerialAsyncmsg::asyncmsg(true); +void UsbSerialAsyncmsg::asyncmsg(const bool& data) { + if (!portapack::async_tx_enabled) { + return; + } + chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data ? "true" : "false"); +} \ No newline at end of file