Skip to content

ble-bootloader: Add device name to default screen #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: staging/ble
Choose a base branch
from

Conversation

NickeZ
Copy link
Collaborator

@NickeZ NickeZ commented May 12, 2025

The user needs the device name to pair

@NickeZ NickeZ requested a review from benma May 12, 2025 18:17
@NickeZ NickeZ force-pushed the nickez/device-name-bootloader branch from c1bd399 to 89c0106 Compare May 12, 2025 18:18
#if PLATFORM_BITBOX02PLUS == 1
char buf[MEMORY_DEVICE_NAME_MAX_LEN] = {0};
memory_random_name(buf);
UG_PutString(0, SCREEN_HEIGHT - 9, buf, false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should do it only if ble is enabled and not already connected? If you reboot to upgrade and you are still connected, there is no need to see some random letters 😄

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@NickeZ NickeZ force-pushed the nickez/device-name-bootloader branch 6 times, most recently from 668a5d7 to 8c15b9e Compare May 14, 2025 12:34
Only show device name before user has paired and if no USB communication
has occurred.

Add a new BLE firmware that supports requesting the current connection
state. This is neeeded because after a reboot from firmware to
bootloader the bootloader isn't aware of the connection state.
@NickeZ NickeZ force-pushed the nickez/device-name-bootloader branch from 8c15b9e to 7d4d357 Compare May 14, 2025 15:36
@NickeZ NickeZ force-pushed the nickez/device-name-bootloader branch from 7d4d357 to 9e3faf6 Compare May 14, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants