Made channel option smarter

This commit is contained in:
Douglas Heriot 2013-01-23 11:56:57 +11:00
parent f19a3a1ed4
commit 567c156498

View File

@ -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 its within bounds 1-16
channel -= 1;
channel %= 16;