Merge "Set max frequency as Max_Value of integer if it's negative."
This commit is contained in:
@@ -43,6 +43,10 @@ public class FrontendInfo {
|
||||
FrontendCapabilities frontendCap) {
|
||||
mId = id;
|
||||
mType = type;
|
||||
// if max Frequency is negative, we set it as max value of the Integer.
|
||||
if (maxFrequency < 0) {
|
||||
maxFrequency = Integer.MAX_VALUE;
|
||||
}
|
||||
mFrequencyRange = new Range<>(minFrequency, maxFrequency);
|
||||
mSymbolRateRange = new Range<>(minSymbolRate, maxSymbolRate);
|
||||
mAcquireRange = acquireRange;
|
||||
|
||||
Reference in New Issue
Block a user