Skip to content

Commit

Permalink
Fix build for dongle.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareltucek committed Jan 1, 2025
1 parent 7d48a9d commit d5bd220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions right/src/usb_commands/usb_command_set_variable.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "config_manager.h"
#include "ledmap.h"

#ifdef __ZEPHYR__
#if defined(__ZEPHYR__) && DEVICE_IS_KEYBOARD
#include "keyboard/leds.h"
#endif

Expand Down Expand Up @@ -39,7 +39,7 @@ void UsbCommand_SetVariable(const uint8_t *GenericHidOutBuffer, uint8_t *Generic
case UsbVariable_StatusBuffer:
break;
case UsbVariable_LedAudioRegisters:
#ifdef __ZEPHYR__
#if defined(__ZEPHYR__) && DEVICE_IS_KEYBOARD
uint8_t phaseDelay = GetUsbRxBufferUint8(2);
uint8_t spreadSpectrum = GetUsbRxBufferUint8(3);
uint8_t pwmFrequency = GetUsbRxBufferUint8(4);
Expand Down

0 comments on commit d5bd220

Please sign in to comment.