Extract BOOTLOADER_TIMEOUT_MS and set it to 100 ms.
This commit is contained in:
@@ -5,7 +5,7 @@ __attribute__((used, section(".BootloaderConfig"))) const bootloader_config_t Bo
|
||||
.tag = BOOTLOADER_TAG,
|
||||
.enabledPeripherals = ENABLE_PERIPHERAL_I2C,
|
||||
.i2cSlaveAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER,
|
||||
.peripheralDetectionTimeoutMs = 300,
|
||||
.peripheralDetectionTimeoutMs = BOOTLOADER_TIMEOUT_MS,
|
||||
.clockFlags = 0xFF, // Disable High speed mode
|
||||
.clockDivider = 0xFF, // Use clock divider (0)
|
||||
};
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
// Macros:
|
||||
|
||||
#define BOOTLOADER_TAG 0x6766636B
|
||||
#define BOOTLOADER_TIMEOUT_MS 100
|
||||
|
||||
// bits for bootloader_config_t.enabledPeripherals
|
||||
#define ENABLE_PERIPHERAL_UART (1<<0)
|
||||
|
||||
Reference in New Issue
Block a user