Modify

Opened 6 years ago

Closed 6 years ago

Last modified 22 months ago

#6478 closed defect (fixed)

gpio_buttons.c bug

Reported by: nunojpg@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Corrections:

variable int button->count is unconstrained to MAX_INT. On my router poll frequency(50Hz), it will rollover in 2.7 years(232 / 50Hz / (3600s*24h*30d)), and so cause a ghost click!

Improvements:

  • Debounce is symetric for press and release.
  • Immediate event after valid state change.


Attachments (1)

gpio.diff (1.4 KB) - added by nunojpg@… 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by nunojpg@…

comment:1 Changed 6 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [19115]. Thanks!

comment:2 Changed 22 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.