mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-08-04 23:21:45 +02:00
Formatted the entire codebase and added a CI check for formatting
This commit is contained in:
.clang-format
.github/workflows
core/src
config.cppconfig.hcore.cppcore.h
dsp
audio.hblock.hbuffer.hchain.hclock_recovery.hcompression.hconversion.hcorrection.hdecimation.hdeframing.hdemodulator.hfalcon_fec.hfalcon_packet.hfilter.hmath.hmeasure.h
meteor
noaa
noise_reduction.hpll.hprocessing.hresampling.hrouting.hsink.hsource.hstereo_fm.hstream.htypes.hutils
vfo.hwindow.hgui
colormaps.cpp
module.cppmodule.hoptions.cppoptions.hdialogs
file_dialogs.hicons.cppmain_window.cppmain_window.hmenus
theme_manager.cpptheme_manager.htuner.cppwidgets
bandplan.cppbandplan.hconstellation_diagram.cppconstellation_diagram.hfile_select.cppfile_select.hfolder_select.cppfolder_select.hfrequency_select.cppimage.cppimage.hline_push_image.cppline_push_image.hmenu.cppmenu.hsnr_meter.cppstepped_slider.cppsymbol_diagram.cppsymbol_diagram.hvolume_meter.cppwaterfall.cppwaterfall.h
signal_path
utils
decoder_modules
falcon9_decoder
m17_decoder
meteor_demodulator
src
radio
weather_sat_decoder
misc_modules
demo_module
src
discord_integration
src
frequency_manager
src
recorder
rigctl_server
src
scanner
src
scheduler
sink_modules
source_modules
airspy_source
src
airspyhf_source
src
bladerf_source
src
file_source
hackrf_source
src
limesdr_source
src
plutosdr_source
src
rfspace_source
rtl_sdr_source
src
rtl_tcp_source
sddc_source
src
sdrplay_source
src
soapy_source
src
spyserver_source
src
@@ -12,7 +12,7 @@
|
||||
|
||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||
|
||||
SDRPP_MOD_INFO {
|
||||
SDRPP_MOD_INFO{
|
||||
/* Name: */ "airspyhf_source",
|
||||
/* Description: */ "Airspy HF+ source module for SDR++",
|
||||
/* Author: */ "Ryzerth",
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
sprintf(buf, "%016" PRIX64, selectedSerial);
|
||||
spdlog::error("Could not open Airspy HF+ {0}", buf);
|
||||
}
|
||||
|
||||
|
||||
selectedSerial = serial;
|
||||
|
||||
uint32_t sampleRates[256];
|
||||
@@ -212,7 +212,7 @@ private:
|
||||
AirspyHFSourceModule* _this = (AirspyHFSourceModule*)ctx;
|
||||
spdlog::info("AirspyHFSourceModule '{0}': Menu Deselect!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void start(void* ctx) {
|
||||
AirspyHFSourceModule* _this = (AirspyHFSourceModule*)ctx;
|
||||
if (_this->running) { return; }
|
||||
@@ -243,7 +243,7 @@ private:
|
||||
_this->running = true;
|
||||
spdlog::info("AirspyHFSourceModule '{0}': Start!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void stop(void* ctx) {
|
||||
AirspyHFSourceModule* _this = (AirspyHFSourceModule*)ctx;
|
||||
if (!_this->running) { return; }
|
||||
@@ -253,7 +253,7 @@ private:
|
||||
_this->stream.clearWriteStop();
|
||||
spdlog::info("AirspyHFSourceModule '{0}': Stop!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void tune(double freq, void* ctx) {
|
||||
AirspyHFSourceModule* _this = (AirspyHFSourceModule*)ctx;
|
||||
if (_this->running) {
|
||||
@@ -262,7 +262,7 @@ private:
|
||||
_this->freq = freq;
|
||||
spdlog::info("AirspyHFSourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
}
|
||||
|
||||
|
||||
static void menuHandler(void* ctx) {
|
||||
AirspyHFSourceModule* _this = (AirspyHFSourceModule*)ctx;
|
||||
float menuWidth = ImGui::GetContentRegionAvailWidth();
|
||||
@@ -330,18 +330,18 @@ private:
|
||||
config.conf["devices"][_this->selectedSerStr]["attenuation"] = _this->atten;
|
||||
config.release(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::Checkbox(CONCAT("HF LNA##_airspyhf_lna_", _this->name), &_this->hfLNA)) {
|
||||
if (_this->running) {
|
||||
airspyhf_set_hf_lna(_this->openDev, _this->hfLNA);
|
||||
}
|
||||
}
|
||||
if (_this->selectedSerStr != "") {
|
||||
config.acquire();
|
||||
config.conf["devices"][_this->selectedSerStr]["lna"] = _this->hfLNA;
|
||||
config.release(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int callback(airspyhf_transfer_t* transfer) {
|
||||
|
Reference in New Issue
Block a user