Add a debug line in SignaCheck function

This commit is contained in:
Isaac Connor 2018-04-19 09:34:14 -04:00
parent 04e8244eca
commit eb21a5113e
1 changed files with 2 additions and 0 deletions

View File

@ -1184,6 +1184,7 @@ bool Monitor::CheckSignal( const Image *image ) {
int index = 0;
for ( int i = 0; i < config.signal_check_points; i++ ) {
while( true ) {
// Why the casting to long long? also note that on a 64bit cpu, long long is 128bits
index = (int)(((long long)rand()*(long long)(pixels-1))/RAND_MAX);
if ( !config.timestamp_on_capture || !label_format[0] )
break;
@ -1219,6 +1220,7 @@ bool Monitor::CheckSignal( const Image *image ) {
}
}
} // end for < signal_check_points
Debug(1,"SignalCheck: %d points, colour_val(%d)", config.signal_check_points, colour_val);
return false;
} // end if signal_check_points
return true;