1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atrf-gpio: accept 'o' as an alias for 'l'

This, while being slightly unsystematic, reduces the risk of confusing
"1" (one) and "l" (lower-case ell).

- tools/atrf-gpio/atben.c (do_atben), tools/atrf-gpio/atusb.c
  (do_atusb): treat 'o' as an alias of 'l'
- tools/atrf-gpio/atrf-gpio.c (usage): list 'o' as alternative for 'l'
This commit is contained in:
Werner Almesberger
2011-06-05 21:47:02 -03:00
parent e9debdd4ab
commit 33b0400e53
3 changed files with 9 additions and 7 deletions

View File

@@ -159,6 +159,7 @@ void do_atben(struct atrf_dsc *dsc, const char *pattern, const char *next)
expect |= bit;
/* fall through */
case 'l':
case 'o':
read |= bit;
/* fall through */
case 'z':