More btle improvements (#1549)

* Cleanup of BLE Rx naming and added switching between the two.
Fixed bug in packet count not resetting when opening new file in BLE Tx
* Bug fix and color change.
This commit is contained in:
Netro 2023-11-03 03:08:49 -04:00 committed by GitHub
parent f67fe262bb
commit 1639348b94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 41 additions and 15 deletions

View file

@ -154,6 +154,7 @@ class BLETxView : public View {
PKT_TYPE pduType = {DISCOVERY};
static constexpr auto header_height = 9 * 16;
static constexpr auto switch_button_height = 3 * 16;
Button button_open{
{0 * 8, 0 * 16, 10 * 8, 2 * 16},
@ -249,6 +250,10 @@ class BLETxView : public View {
Console console{
{0, 8 * 16, 240, 240}};
Button button_switch{
{8 * 8, 16 * 16, 14 * 8, 2 * 16},
"Switch to Rx"};
std::string str_log{""};
bool logging{true};
bool logging_done{false};