mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 06:02:20 -04:00
BLE Tx App / BLE Rx Filtering. (#1543)
BLE TX app creation BLE RX and TX app improvements
This commit is contained in:
parent
62307b93d7
commit
dceb7255b0
19 changed files with 1402 additions and 34 deletions
|
@ -118,7 +118,12 @@ void AlphanumView::refresh_keys() {
|
|||
|
||||
size_t n = 0;
|
||||
for (auto& button : buttons) {
|
||||
button.set_text(std::string{key_list[n]});
|
||||
if (n > strlen(key_list)) {
|
||||
button.set_text(std::string{'\0'});
|
||||
} else {
|
||||
button.set_text(std::string{key_list[n]});
|
||||
}
|
||||
|
||||
n++;
|
||||
}
|
||||
|
||||
|
@ -137,7 +142,9 @@ void AlphanumView::refresh_keys() {
|
|||
|
||||
void AlphanumView::on_button(Button& button) {
|
||||
const auto c = button.text()[0];
|
||||
char_add(c);
|
||||
if (c != '\0') {
|
||||
char_add(c);
|
||||
}
|
||||
|
||||
// TODO: Consolidate shift handling.
|
||||
if (shift_mode == ShiftMode::Shift) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue