mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 01:29:03 -04:00
add path class usage type debug (#2154)
This commit is contained in:
parent
e4d8bcb88d
commit
a8203a6372
1 changed files with 9 additions and 0 deletions
|
@ -112,6 +112,15 @@ void UsbSerialAsyncmsg::asyncmsg<std::filesystem::path>(const std::filesystem::p
|
||||||
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", path_str.c_str());
|
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", path_str.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
void UsbSerialAsyncmsg::asyncmsg<std::filesystem::path::string_type>(const std::filesystem::path::string_type& data) {
|
||||||
|
if (!portapack::async_tx_enabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
std::string str_data(data.begin(), data.end());
|
||||||
|
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", str_data.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
/// string
|
/// string
|
||||||
|
|
||||||
// string obj
|
// string obj
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue