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

Single bank OTA #2446

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Single bank OTA #2446

merged 1 commit into from
Nov 2, 2023

Conversation

cpq
Copy link
Member

@cpq cpq commented Nov 2, 2023

No description provided.

@cpq cpq merged commit 22f7609 into master Nov 2, 2023
126 of 127 checks passed
@cpq cpq deleted the o2 branch November 2, 2023 14:55
Comment on lines +11 to +20
#define BTN PIN('C', 13) // User push button
#define LED1 PIN('B', 0) // On-board LED pin (green)
#define LED2 PIN('E', 1) // On-board LED pin (yellow)
#define LED3 PIN('B', 14) // On-board LED pin (red)
#define LED LED2 // Use yellow LED for blinking

#ifndef UART_DEBUG
#define UART_DEBUG USART3
#endif

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like defines after includes, as it was before... just a matter of taste and having all necessary stuff at top
Plus, all hal.h have UART_DEBUG near the UART code

Comment on lines +19 to +24
#define MG_LOG(level, args) \
do { \
if ((level) <= mg_log_level) { \
mg_log_prefix((level), __FILE__, __LINE__, __func__); \
mg_log args; \
} \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool.
I guess you couldn't resist temptation, a separate PR could have been nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants