From c1ab0003118613803d8028066fac8323acf3db9a Mon Sep 17 00:00:00 2001 From: Karel Tucek Date: Wed, 30 Sep 2026 13:00:52 +0200 Subject: [PATCH] Uncouple the OLED log sink from the USB logging variable. UsbVariable_ShellEnabled (Agent's USB logging toggle) also switched the OLED sink. The OLED sink keeps its own controls: 'set log.sink.oled' and 'uhk log oledSink'. Co-Authored-By: Claude Fable 5.1 --- right/src/usb_commands/usb_command_set_variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/usb_commands/usb_command_set_variable.c b/right/src/usb_commands/usb_command_set_variable.c index 5d1002a5a..5189387f2 100644 --- a/right/src/usb_commands/usb_command_set_variable.c +++ b/right/src/usb_commands/usb_command_set_variable.c @@ -53,8 +53,8 @@ void UsbCommand_SetVariable(const uint8_t *GenericHidOutBuffer, uint8_t *Generic #endif break; case UsbVariable_ShellEnabled: + // The OLED sink is independent: `set log.sink.oled` / `uhk log oledSink`. WormCfg->LogUsbSinkEnabled = GetUsbRxBufferUint8(2); - WormCfg->LogOledSinkEnabled = GetUsbRxBufferUint8(2); break; case UsbVariable_FirmwareVersionCheckEnabled: #ifdef __ZEPHYR__