Skip to content

Enable logging buffer UI for uhk60.#2845

Open
kareltucek wants to merge 1 commit intoUltimateHackingKeyboard:masterfrom
kareltucek:usb_logging_uhk60
Open

Enable logging buffer UI for uhk60.#2845
kareltucek wants to merge 1 commit intoUltimateHackingKeyboard:masterfrom
kareltucek:usb_logging_uhk60

Conversation

@kareltucek
Copy link
Collaborator

Uhk60 now allows logging into the same usb buffer as the one used by (formerly) zephyr logging.

@kareltucek kareltucek requested a review from ert78gb March 4, 2026 19:30
Copy link
Member

@ert78gb ert78gb left a comment

Choose a reason for hiding this comment

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

The PR overall fine I have some generic questions

Comment on lines +90 to +92
this.isZephyrLoggingAllowed = connectedDevice?.id === UHK_80_DEVICE.id
|| connectedDevice?.id === UHK_60_DEVICE.id
|| connectedDevice?.id === UHK_60_V2_DEVICE.id;
Copy link
Member

Choose a reason for hiding this comment

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

If we don't add other condition like firmware version then why not just allow logging when device is connected?

Suggested change
this.isZephyrLoggingAllowed = connectedDevice?.id === UHK_80_DEVICE.id
|| connectedDevice?.id === UHK_60_DEVICE.id
|| connectedDevice?.id === UHK_60_V2_DEVICE.id;
this.isZephyrLoggingAllowed = !!connectedDevice;

(click)="onToggleZephyrLogging()"
>
Zephyr logging
Logging
Copy link
Member

Choose a reason for hiding this comment

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

If we rename here the Zephyr logging then maybe worth to rename/remove the zephyr from the code blocks too. The ZephyrLogService covers the dongle and UHK80 Left Zephyr logging. Maybe worth to rename the Zephyr to Shell. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants