Skip to content

fix optional pcb command API on esp32#877

Merged
IgorYbema merged 2 commits into
heishamon:mainfrom
IgorYbema:main
Apr 28, 2026
Merged

fix optional pcb command API on esp32#877
IgorYbema merged 2 commits into
heishamon:mainfrom
IgorYbema:main

Conversation

@IgorYbema

Copy link
Copy Markdown
Member

No description provided.

IgorYbema and others added 2 commits April 28, 2026 19:38
On ESP32 the periodic optional PCB send runs in a FreeRTOS task that
reads exclusively from pcbQueue via xQueuePeek. When the /command? API
handled an optional PCB command (e.g. /command?SetZ2WaterTemp=45),
tmp.func() correctly updated optionalPCBQuery but never wrote the new
value to pcbQueue, so the task kept sending stale data indefinitely.

The rules path had the same bug and was fixed in 0da01f7. Apply the
same fix here: call xQueueOverwrite after invoking the command function.

On ESP8266 the periodic send reads optionalPCBQuery directly, so no
change in behaviour there.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IgorYbema IgorYbema merged commit ce3513b into heishamon:main Apr 28, 2026
1 check 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.

1 participant