Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226418
b: refs/heads/master
c: 21d3301
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Białończyk authored and Mauro Carvalho Chehab committed Dec 31, 2010
1 parent 82aeeb7 commit 94382a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef98a2c0f2856f6b2aa87fd32d5b192afaeae518
refs/heads/master: 21d33014108671cc6b02feda088f32bf26ce532d
10 changes: 7 additions & 3 deletions trunk/drivers/media/rc/ir-nec-decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev)
data->state = STATE_BIT_PULSE;
return 0;
} else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) {
rc_repeat(dev);
IR_dprintk(1, "Repeat last key\n");
data->state = STATE_TRAILER_PULSE;
if (!dev->keypressed) {
IR_dprintk(1, "Discarding last key repeat: event after key up\n");
} else {
rc_repeat(dev);
IR_dprintk(1, "Repeat last key\n");
data->state = STATE_TRAILER_PULSE;
}
return 0;
}

Expand Down

0 comments on commit 94382a8

Please sign in to comment.