mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 11:47:13 +01:00
Changed frequency fetching
This commit is contained in:
parent
9776191e83
commit
a9d1d9b9e7
@ -8,11 +8,11 @@
|
|||||||
#include <discord_rpc.h>
|
#include <discord_rpc.h>
|
||||||
|
|
||||||
SDRPP_MOD_INFO {
|
SDRPP_MOD_INFO {
|
||||||
/* Name: */ "discord",
|
/* Name: */ "discord-integration",
|
||||||
/* Description: */ "Discord Rich Presence module for SDR++",
|
/* Description: */ "Discord Rich Presence module for SDR++",
|
||||||
/* Author: */ "Starman0620",
|
/* Author: */ "Starman0620",
|
||||||
/* Version: */ 0, 0, 1,
|
/* Version: */ 0, 0, 1,
|
||||||
/* Max instances */ -1
|
/* Max instances */ 1
|
||||||
};
|
};
|
||||||
|
|
||||||
void ready(const DiscordUser *request);
|
void ready(const DiscordUser *request);
|
||||||
@ -70,7 +70,7 @@ private:
|
|||||||
|
|
||||||
static void updatePresence() {
|
static void updatePresence() {
|
||||||
presence.details = "Listening";
|
presence.details = "Listening";
|
||||||
sprintf(freq, "%.2fMHz", gui::waterfall.getCenterFrequency()/1000000, 3);
|
sprintf(freq, "%.2fMHz", (float)gui::freqSelect.frequency/1000000);
|
||||||
presence.state = freq;
|
presence.state = freq;
|
||||||
Discord_UpdatePresence(&presence);
|
Discord_UpdatePresence(&presence);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user