Skip to content

CRITICAL: No Maximum Watering Duration Limit #9

@isbkch

Description

@isbkch

Problem

Pumps have no maximum duration limit and could run indefinitely if relay fails.

Impact

  • Could flood plants if relay gets stuck
  • Could drain entire water supply
  • No failsafe against pump hardware failure

Current Code

executeWateringAction() trusts action.waterDuration without limits.

Solution Required

Add maximum watering duration constants and enforce limits.

Files Affected

  • src/main.cpp:188-213

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions