mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-08-01 05:36:05 +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: */ "airspy_source",
|
||||
/* Description: */ "Airspy source module for SDR++",
|
||||
/* Author: */ "Ryzerth",
|
||||
@ -33,7 +33,7 @@ public:
|
||||
|
||||
handler.ctx = this;
|
||||
handler.selectHandler = menuSelected;
|
||||
handler.deselectHandler = menuDeselected;
|
||||
handler.deselectHandler = menuDeselected;
|
||||
handler.menuHandler = menuHandler;
|
||||
handler.startHandler = start;
|
||||
handler.stopHandler = stop;
|
||||
@ -236,7 +236,7 @@ private:
|
||||
AirspySourceModule* _this = (AirspySourceModule*)ctx;
|
||||
spdlog::info("AirspySourceModule '{0}': Menu Deselect!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void start(void* ctx) {
|
||||
AirspySourceModule* _this = (AirspySourceModule*)ctx;
|
||||
if (_this->running) { return; }
|
||||
@ -255,7 +255,7 @@ private:
|
||||
|
||||
airspy_set_samplerate(_this->openDev, _this->sampleRateList[_this->srId]);
|
||||
airspy_set_freq(_this->openDev, _this->freq);
|
||||
|
||||
|
||||
if (_this->gainMode == 0) {
|
||||
airspy_set_lna_agc(_this->openDev, 0);
|
||||
airspy_set_mixer_agc(_this->openDev, 0);
|
||||
@ -291,7 +291,7 @@ private:
|
||||
_this->running = true;
|
||||
spdlog::info("AirspySourceModule '{0}': Start!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void stop(void* ctx) {
|
||||
AirspySourceModule* _this = (AirspySourceModule*)ctx;
|
||||
if (!_this->running) { return; }
|
||||
@ -301,7 +301,7 @@ private:
|
||||
_this->stream.clearWriteStop();
|
||||
spdlog::info("AirspySourceModule '{0}': Stop!", _this->name);
|
||||
}
|
||||
|
||||
|
||||
static void tune(double freq, void* ctx) {
|
||||
AirspySourceModule* _this = (AirspySourceModule*)ctx;
|
||||
if (_this->running) {
|
||||
@ -310,7 +310,7 @@ private:
|
||||
_this->freq = freq;
|
||||
spdlog::info("AirspySourceModule '{0}': Tune: {1}!", _this->name, freq);
|
||||
}
|
||||
|
||||
|
||||
static void menuHandler(void* ctx) {
|
||||
AirspySourceModule* _this = (AirspySourceModule*)ctx;
|
||||
float menuWidth = ImGui::GetContentRegionAvailWidth();
|
||||
@ -536,8 +536,6 @@ private:
|
||||
config.release(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
static int callback(airspy_transfer_t* transfer) {
|
||||
|
Reference in New Issue
Block a user