Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a17bccf authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Set max frequency as Max_Value of integer if it's negative."

parents 45a397a8 7112714a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;