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

[SL-UP]Fix SoC build if disable button and led components #155

Conversation

bhmanda-silabs
Copy link
Contributor

This PR adds compilation fix with 917 SoC if button/LED components are disabled.

Added proper macros wherever button/led code is present.

Tested build locally with BRD4338A board.

@bhmanda-silabs bhmanda-silabs force-pushed the fix/soc_build_if_disable_button_led branch from 9be57eb to c198cb4 Compare December 12, 2024 08:20
@bhmanda-silabs bhmanda-silabs marked this pull request as ready for review December 12, 2024 08:23
@bhmanda-silabs bhmanda-silabs requested a review from a team as a code owner December 12, 2024 08:23
@mkardous-silabs mkardous-silabs merged commit f96399a into SiliconLabsSoftware:release_2.5-1.4 Dec 12, 2024
11 of 12 checks passed
@@ -191,6 +197,12 @@ uint8_t SilabsPlatform::GetButtonState(uint8_t button)
{
return (button < SL_SI91x_BUTTON_COUNT) ? sButtonStates[button] : 0;
}
#else
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be merged into one line.

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.

5 participants