mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-28 01:05:58 -04:00
add bool type print (#2136)
This commit is contained in:
parent
3628576d60
commit
075b23b291
1 changed files with 10 additions and 0 deletions
|
@ -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");
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue