From 1f1efbebc99b27bb6bb8bd868a63b5ab51487e3d Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 9 Jul 2022 21:55:22 +0300 Subject: [PATCH] waver : fix frequency range for MT protocols --- examples/waver/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/waver/common.cpp b/examples/waver/common.cpp index 556751b..ccb240a 100644 --- a/examples/waver/common.cpp +++ b/examples/waver/common.cpp @@ -1177,7 +1177,7 @@ void renderMain() { { const float df = statsCurrent.sampleRate/statsCurrent.samplesPerFrame; const auto & protocol = settings.txProtocols[settings.protocolId]; - ImGui::Text("%6.2f Hz - %6.2f Hz", df*protocol.freqStart, df*(protocol.freqStart + 2*16*protocol.bytesPerTx)); + ImGui::Text("%6.2f Hz - %6.2f Hz", df*protocol.freqStart, df*(protocol.freqStart + float(2*16*protocol.bytesPerTx)/protocol.extra)); } // fixed-length