Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • ampel-firmware ampel-firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • co2ampelco2ampel
  • ampel-firmwareampel-firmware
  • Issues
  • #4
Closed
Open
Issue created Jun 07, 2021 by Käppler@michael_kaepplerContributor

Unintentional switch to night mode after starting calibration

I noticed the following behaviour multiple times, but I cannot reproduce it reliably.

After pressing the "Flash" button a long time to initiate calibration and releasing it after the finished countdown, the ampel switches to night mode.

AFAICT this happens if the button is still pressed during the next call of checkFlashButton() and released < 300 ms after that.

IMHO the most reliable fix would be to disable the button polling during calibration. More simple but unreliable would be to introduce a small delay after calling sensor::startCalibrationProcess().

Assignee
Assign to
Time tracking

Dies ist die Gitlab-Instanz des Transferportals der Hochschule für Technik Stuttgart. Hier geht es zurück zum Portal