From a9d1d9b9e75f495c6201e6d3e922a030d64f9651 Mon Sep 17 00:00:00 2001 From: Starman0620 <28871190+Starman0620@users.noreply.github.com> Date: Tue, 20 Apr 2021 18:14:58 -0400 Subject: [PATCH] Changed frequency fetching --- discord-integration/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord-integration/src/main.cpp b/discord-integration/src/main.cpp index e35035e2..4cdb0b75 100644 --- a/discord-integration/src/main.cpp +++ b/discord-integration/src/main.cpp @@ -8,11 +8,11 @@ #include SDRPP_MOD_INFO { - /* Name: */ "discord", + /* Name: */ "discord-integration", /* Description: */ "Discord Rich Presence module for SDR++", /* Author: */ "Starman0620", /* Version: */ 0, 0, 1, - /* Max instances */ -1 + /* Max instances */ 1 }; void ready(const DiscordUser *request); @@ -70,7 +70,7 @@ private: static void updatePresence() { presence.details = "Listening"; - sprintf(freq, "%.2fMHz", gui::waterfall.getCenterFrequency()/1000000, 3); + sprintf(freq, "%.2fMHz", (float)gui::freqSelect.frequency/1000000); presence.state = freq; Discord_UpdatePresence(&presence); }