Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make bootloader_jump for dualbank STM32 respect STM32_BOOTLOADER_DUAL_BANK_DELAY #17178

Merged
merged 1 commit into from
May 31, 2022

Conversation

preisi
Copy link
Contributor

@preisi preisi commented May 21, 2022

As of now, the code for STM32s with dualbank flash contains a define named STM32_BOOTLOADER_DUAL_BANK_DELAY which is never used. Instead, the actual delay is hardcoded to 100ms inside the respective bootloader_jump-function.

This commit changes the default value of said define to the aforementioned 100ms to keep the current behaviour. Additionally, the hardcoded 100ms are replaced with the previously unused define to actually allow modifying the charging delay before resetting the MCU.

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@preisi preisi changed the base branch from master to develop May 21, 2022 15:55
@preisi preisi force-pushed the stm32_bootloader_dualbank_delay branch from 422ec3a to 0a2bb08 Compare May 21, 2022 16:04
@drashna drashna requested a review from a team May 21, 2022 16:44
@drashna drashna merged commit bbab8eb into qmk:develop May 31, 2022
0xcharly pushed a commit to Bastardkb/bastardkb-qmk that referenced this pull request Jul 4, 2022
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.

3 participants