Skip to content

Fixed string length check in the thermostat demo. #14

Merged
fdesbiens merged 2 commits intoeclipse-threadx:devfrom
daleylin:master
Mar 6, 2026
Merged

Fixed string length check in the thermostat demo. #14
fdesbiens merged 2 commits intoeclipse-threadx:devfrom
daleylin:master

Conversation

@daleylin
Copy link

fix string length

1、此处字符串长度最大为 sizeof(str_value)-1,实际比这个更小,错误的长度导致 gx_prompt_text_set_ext(prompt,&string)函数报错
@fdesbiens fdesbiens changed the base branch from master to dev October 14, 2025 21:14
@fdesbiens
Copy link
Contributor

The ECA check fails on this PR. However, this is a trivial one-liner that fixes an obvious bug. I could have recreated that fix myself and submit a PR, but it is more efficient to merge this as is.

@fdesbiens fdesbiens changed the title demo_guix_thermostat/demo_guix_thermostat.c Fixed string length check in the thermostat demo. Mar 6, 2026
@fdesbiens fdesbiens merged commit 4eaa63b into eclipse-threadx:dev Mar 6, 2026
1 check failed
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