Compare commits

...

3 Commits

Author SHA1 Message Date
summermorningdream 2e8a03d750
Merge 05ad0e24b4 into 3628576d60 2024-05-07 22:59:25 +08:00
Mark Thompson 3628576d60
Removed some blank lines (#2140) 2024-05-07 15:41:58 +02:00
zxkmm 05ad0e24b4 add bool type print 2024-05-04 16:17:21 +08:00
3 changed files with 13 additions and 8 deletions

View File

@ -5,11 +5,9 @@ namespace ui {
// TODO: Generate this automatically from github
// Information: a line starting with a '#' will be yellow coloured
const std::string authors_list[] = {
" ",
"# * List of contributors * ",
" ",
"#Mayhem:",
" ",
"eried,euquiq,gregoryfenton",
"johnelder,jwetzell,nnemanjan00",
"N0vaPixel,klockee,gullradriel",
@ -27,7 +25,6 @@ const std::string authors_list[] = {
"Netro,HTotoo",
" ",
"#Havoc:",
" ",
"furrtek,mrmookie,NotPike",
"mjwaxios,ImDroided,Giorgiofox",
"F4GEV,z4ziggy,xmycroftx",
@ -37,11 +34,9 @@ const std::string authors_list[] = {
"brianlechthaler,ZeroChaos-...",
" ",
"#PortaPack:",
" ",
"jboone,argilo",
" ",
"#HackRF:",
" ",
"mossmann,dominicgs,bvernoux",
"bgamari,schneider42,miek",
"willcode,hessu,Sec42",
@ -86,8 +81,8 @@ AboutView::AboutView(NavigationView& nav) {
void AboutView::focus() {
menu_view.focus();
// put focus on first text line
menu_view.set_highlighted(1);
// put focus on last text line to make it more obvious that list is scrollable
menu_view.set_highlighted(10);
}
} /* namespace ui */

View File

@ -15,7 +15,7 @@ class AboutView : public View {
private:
MenuView menu_view{
{0, 0, 240, 240},
{0, 0, 240, 264},
true};
Button button_ok{

View File

@ -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<bool>(const bool& data) {
if (!portapack::async_tx_enabled) {
return;
}
chprintf((BaseSequentialStream*)&SUSBD1, "%s\r\n", data ? "true" : "false");
}