Skip to content

Commit

Permalink
Reload ansi/iso flag when hyardware config is written.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareltucek committed Dec 30, 2024
1 parent aca35f4 commit ce69d89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions right/src/usb_commands/usb_command_launch_storage_transfer.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "usb_commands/usb_command_launch_storage_transfer.h"
#include "event_scheduler.h"
#include "ledmap.h"
#include "usb_protocol_handler.h"
#include "config_parser/config_globals.h"

Expand Down Expand Up @@ -39,6 +41,12 @@ void UsbCommand_LaunchStorageTransfer(const uint8_t *GenericHidOutBuffer, uint8_
status_t status = EEPROM_LaunchTransfer(storageOperation, configBufferId, NULL);
#endif

if (configBufferId == ConfigBufferId_HardwareConfig) {
// reload is/ansi led settings
Ledmap_InitLedLayout();
EventVector_Set(EventVector_LedMapUpdateNeeded);
}

if (status != kStatus_Success) {
SetUsbTxBufferUint8(0, UsbStatusCode_LaunchStorageTransferTransferError);
SetUsbTxBufferUint32(1, status);
Expand Down

0 comments on commit ce69d89

Please sign in to comment.