comparison core/RTAudioCommandLine.cpp @ 240:1fd334f64f0a

Fixed behaviour of the -G command line closes #1680
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 14 Apr 2016 15:44:38 +0100
parents a156a694864d
children c55c6f6c233c
comparison
equal deleted inserted replaced
239:dca0ca81b685 240:1fd334f64f0a
158 case 'N': 158 case 'N':
159 settings->useAnalog = atoi(optarg); 159 settings->useAnalog = atoi(optarg);
160 break; 160 break;
161 case 'G': 161 case 'G':
162 settings->useDigital = atoi(optarg); 162 settings->useDigital = atoi(optarg);
163 settings->numDigitalChannels = 0; 163 if(settings->useDigital == 0){
164 settings->numDigitalChannels = 0;
165 }
164 break; 166 break;
165 case 'C': 167 case 'C':
166 settings->numAnalogChannels = atoi(optarg); 168 settings->numAnalogChannels = atoi(optarg);
167 if(settings->numAnalogChannels >= 8) 169 if(settings->numAnalogChannels >= 8)
168 settings->numAnalogChannels = 8; 170 settings->numAnalogChannels = 8;