Skip to content

print_c_program incorrectly uses True, False (not true, false) in generated C code #74

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

Closed
jepler opened this issue Dec 17, 2024 · 0 comments · Fixed by #76
Closed

print_c_program incorrectly uses True, False (not true, false) in generated C code #74

jepler opened this issue Dec 17, 2024 · 0 comments · Fixed by #76

Comments

@jepler
Copy link
Contributor

jepler commented Dec 17, 2024

>>> adafruit_pioasm.Program(".side_set 1 opt").print_c_program("mood")
const int mood_wrap = -1;
const int mood_wrap_target = 0;
const int mood_sideset_pin_count = 1;
const bool mood_sideset_enable = True; /// <--- this is not valid C
const uint16_t mood[] = {
};
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 a pull request may close this issue.

1 participant