mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
#1955 Java JDK 22 and Gradle 8.10. Updates SDRPlay API to latest Project Panama FFM API changes. Increment app version to 0.6.1-beta2 (#1958)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* *****************************************************************************
|
||||
* Copyright (C) 2014-2023 Dennis Sheirer
|
||||
* Copyright (C) 2014-2024 Dennis Sheirer
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -275,8 +275,20 @@ public class CalibrationManager
|
||||
public static void main(String[] args)
|
||||
{
|
||||
CalibrationManager manager = getInstance();
|
||||
// manager.reset();
|
||||
manager.reset(CalibrationType.WINDOW);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Current Calibration Settings:\n");
|
||||
for(CalibrationType type: CalibrationType.values())
|
||||
{
|
||||
Calibration calibration = manager.getCalibration(type);
|
||||
if(calibration != null)
|
||||
{
|
||||
sb.append("\t").append(type.name()).append("\t").append(manager.getCalibration(type).getImplementation()).append("\n");
|
||||
}
|
||||
}
|
||||
System.out.println(sb);
|
||||
|
||||
manager.reset();
|
||||
|
||||
if(!manager.isCalibrated())
|
||||
{
|
||||
@@ -290,6 +302,19 @@ public class CalibrationManager
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
StringBuilder sb1 = new StringBuilder();
|
||||
sb1.append("Updated Calibration Settings:\n");
|
||||
for(CalibrationType type: CalibrationType.values())
|
||||
{
|
||||
Calibration calibration = manager.getCalibration(type);
|
||||
if(calibration != null)
|
||||
{
|
||||
sb1.append("\t").append(type.name()).append("\t").append(manager.getCalibration(type).getImplementation()).append("\n");
|
||||
}
|
||||
}
|
||||
System.out.println(sb1);
|
||||
|
||||
System.out.println("Complete");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user