-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Ble enhancements#124 #129
Ble enhancements#124 #129
Conversation
- Add "Subject" field to notification object - Remove length check for notification fields, because empty fields have a length of 0 which causes issues with the string termination main: - Rename log level for main in Kconfig - Add log level for main application - Use short payload of a notification instead of the long version Signed-off-by: Daniel Kampert <[email protected]>
- Add log level for Bluetooth code - Replace include guards with "pragma once" Template app: - Add log level for template app Settings app: - Add log level for settings app Signed-off-by: Daniel Kampert <[email protected]>
ac6e4db
to
fb08d5b
Compare
- Fix compile errors because of multible log tags in Bluetooth code - Undo auto insertion in settings file by VS Code - Change log level for notification data to debug
fb08d5b
to
80163b1
Compare
@@ -220,6 +231,13 @@ static void on_pairing_enable_changed(lv_setting_value_t value, bool final) | |||
{ | |||
if (final) { | |||
ble_comm_set_pairable(true); | |||
|
|||
if (!k_work_delayable_is_pending(&ble_pairing_dwork)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can replace all of this with one in the top of file:
K_WORK_DELAYABLE_DEFINE(ble_pairing_dwork, ble_pairing_work_handler)
And then always call k_work_reschedule
here, I think it will schedule if not already scheduled, and re-schedule i.e. prolong to 60s if timer already running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
@@ -353,7 +353,7 @@ static void open_notification_popup(void *data) | |||
lv_group_set_default(temp_group); | |||
lv_indev_set_group(enc_indev, temp_group); | |||
zsw_vibration_run_pattern(ZSW_VIBRATION_PATTERN_NOTIFICATION); | |||
zsw_notification_popup_show(not->title, not->body, not->src, not->id, on_popup_notifcation_closed, 10); | |||
zsw_notification_popup_show(not->title, not->sender, not->src, not->id, on_popup_notifcation_closed, 10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sender is body? What changes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BLE:
main:
Template app:
Settings app: