Made channel option smarter
This commit is contained in:
parent
f19a3a1ed4
commit
567c156498
@ -88,6 +88,9 @@ int main(int argc, char * const *argv)
|
||||
case O_CHANNEL:
|
||||
channel = atoi(optarg);
|
||||
|
||||
if(channel == 0)
|
||||
channel = 1; // you probably meant 1
|
||||
|
||||
// Make sure it’s within bounds 1-16
|
||||
channel -= 1;
|
||||
channel %= 16;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user