length cast to double

This commit is contained in:
Chris Esposito 2019-03-07 20:00:40 +11:00 committed by GitHub
parent c149063452
commit 681ef5cb13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void functionGenControl::waveformName(ChannelID channelID, QString newName)
#endif
double newMaxFreq = DAC_SPS / (length >> (channel.divisibility - 1));
double newMinFreq = double(CLOCK_FREQ) / 1024.0 / 65535.0 / length;
double newMinFreq = double(CLOCK_FREQ) / 1024.0 / 65535.0 / static_cast<double>(length);
// NOTE: Not very clean... Not sure what to do about it.
// I guess the "right thing" would be to have a Channel QObject class with its