Merge pull request #1717 from DSheirer/1681-audio-recordings-incorrect-system-and-site

#1681 Audio Recorder Mixing Up System and Site When Decoding Multiple Systems
This commit is contained in:
Denny Sheirer
2023-11-10 04:51:54 -05:00
committed by GitHub
2 changed files with 1 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ public class ChannelProcessingManager implements Listener<ChannelEvent>
* @param request containing channel and other details
* @throws ChannelException if a source is not available for the channel
*/
private void startProcessing(ChannelStartProcessingRequest request) throws ChannelException
private synchronized void startProcessing(ChannelStartProcessingRequest request) throws ChannelException
{
Channel channel = request.getChannel();

View File

@@ -236,7 +236,6 @@ public abstract class R8xEmbeddedTuner extends EmbeddedTuner
writeRegister(Register.DIVIDER, (byte) (div_num << 5), controlI2C);
/* Get the integral number for this divider and frequency */
Integral integral = divider.getIntegral(frequency);
System.out.println("Using divider [" + divider + "] integral [" + integral + "] for [" + frequency + "]");
writeRegister(Register.PLL, integral.getRegisterValue(), controlI2C);
/* Calculate the sigma-delta modulator fractional setting. If it's non-zero, power up the sdm and apply the
fractional setting, otherwise turn it off */