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

ESP32: fix gpio:init/1 on GPIO >= 32 #1359

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Nov 5, 2024

Use 1ULL as integer constant (so uint64_t is used), in order to make room for GPIO index >= 32 when shifting.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Use 1ULL as integer constant (so uint64_t is used), in order to make
room for GPIO index >= 32 when shifting.

Signed-off-by: Davide Bettio <[email protected]>
@bettio bettio merged commit 79105bd into atomvm:release-0.6 Nov 10, 2024
26 checks passed
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