Formatted the entire codebase and added a CI check for formatting
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
#include <sat_decoder.h>
|
||||
#include <noaa_hrpt_decoder.h>
|
||||
|
||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||
|
||||
SDRPP_MOD_INFO {
|
||||
SDRPP_MOD_INFO{
|
||||
/* Name: */ "weather_sat_decoder",
|
||||
/* Description: */ "Weather Satellite Decoder for SDR++",
|
||||
/* Author: */ "Ryzerth",
|
||||
@@ -34,7 +34,7 @@ SDRPP_MOD_INFO {
|
||||
|
||||
std::string genFileName(std::string prefix, std::string suffix) {
|
||||
time_t now = time(0);
|
||||
tm *ltm = localtime(&now);
|
||||
tm* ltm = localtime(&now);
|
||||
char buf[1024];
|
||||
sprintf(buf, "%s_%02d-%02d-%02d_%02d-%02d-%02d%s", prefix.c_str(), ltm->tm_hour, ltm->tm_min, ltm->tm_sec, ltm->tm_mday, ltm->tm_mon + 1, ltm->tm_year + 1900, suffix.c_str());
|
||||
return buf;
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
}
|
||||
|
||||
selectDecoder(decoderNames[0], false);
|
||||
|
||||
|
||||
gui::menu.registerEntry(name, menuHandler, this, this);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ private:
|
||||
|
||||
std::string name;
|
||||
bool enabled = true;
|
||||
|
||||
|
||||
VFOManager::VFO* vfo;
|
||||
|
||||
std::map<std::string, SatDecoder*> decoders;
|
||||
@@ -129,7 +129,6 @@ private:
|
||||
int decoderId = 0;
|
||||
|
||||
SatDecoder* decoder;
|
||||
|
||||
};
|
||||
|
||||
MOD_EXPORT void _INIT_() {
|
||||
|
||||
Reference in New Issue
Block a user