Fix a stupid bug (thanks to Frieder Ferlemann.) Get rid of MS-DOS line endings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11230 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e147bf3d9f
commit
634f1d6b59
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ int button_read_device(void)
|
||||||
if ((state & 0x8) == 0) btn |= BUTTON_LEFT;
|
if ((state & 0x8) == 0) btn |= BUTTON_LEFT;
|
||||||
if ((state & 0x10) == 0) btn |= BUTTON_SELECT; /* The centre button */
|
if ((state & 0x10) == 0) btn |= BUTTON_SELECT; /* The centre button */
|
||||||
if ((state & 0x20) == 0) btn |= BUTTON_UP; /* The "play" button */
|
if ((state & 0x20) == 0) btn |= BUTTON_UP; /* The "play" button */
|
||||||
if ((state & 0x40) == 1) btn |= BUTTON_POWER;
|
if ((state & 0x40) != 0) btn |= BUTTON_POWER;
|
||||||
}
|
}
|
||||||
|
|
||||||
return btn;
|
return btn;
|
||||||
|
|
Loading…
Reference in a new issue