mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 17:37:37 +00:00
add bool type print (#2136)
This commit is contained in:

committed by
GitHub

parent
3628576d60
commit
075b23b291
@@ -132,3 +132,13 @@ void UsbSerialAsyncmsg::asyncmsg(const char* data) {
|
|||||||
}
|
}
|
||||||
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data);
|
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// bool
|
||||||
|
template <>
|
||||||
|
// usage: UsbSerialAsyncmsg::asyncmsg(true);
|
||||||
|
void UsbSerialAsyncmsg::asyncmsg<bool>(const bool& data) {
|
||||||
|
if (!portapack::async_tx_enabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data ? "true" : "false");
|
||||||
|
}
|
Reference in New Issue
Block a user