From 754a9ac406cd63b58329711db59cbd0020d99d5c Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 3 May 2021 22:40:53 +0200 Subject: [PATCH] Acutally moved the mode and freq variables to the stack because why not --- discord_integration/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord_integration/src/main.cpp b/discord_integration/src/main.cpp index 39fa30b7..32ed18ec 100644 --- a/discord_integration/src/main.cpp +++ b/discord_integration/src/main.cpp @@ -73,6 +73,8 @@ private: } void updatePresence() { + char freq[1024]; + char mode[1024]; double selectedFreq = gui::freqSelect.frequency; std::string selectedName = gui::waterfall.selectedVFO; strcpy(mode, "Raw"); @@ -134,8 +136,6 @@ private: // Rich Presence DiscordRichPresence presence; double lastFreq; - char freq[1024]; - char mode[1024]; std::string lastMode = ""; // Threading