mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-05-19 17:38:23 +00:00
clang
This commit is contained in:
parent
f12672c02a
commit
0fa4a00886
@ -63,10 +63,10 @@ bool DebugDumpView::debug_dump_func() {
|
||||
pmem_dump_file.write_line("\n[Persistent Memory]");
|
||||
|
||||
// full variables
|
||||
// pmem_dump_file.write_line("structure_version: 0x" + to_string_hex(data->structure_version, 8));
|
||||
// pmem_dump_file.write_line("structure_version: 0x" + to_string_hex(data->structure_version, 8));
|
||||
pmem_dump_file.write_line("target_frequency: " + to_string_dec_int(target_frequency()));
|
||||
pmem_dump_file.write_line("correction_ppb: " + to_string_dec_int(correction_ppb()));
|
||||
// pmem_dump_file.write_line("modem_def_index: " + to_string_dec_uint(data->modem_def_index));
|
||||
// pmem_dump_file.write_line("modem_def_index: " + to_string_dec_uint(data->modem_def_index));
|
||||
pmem_dump_file.write_line("serial_format.data_bit: " + to_string_dec_uint(serial_format().data_bits));
|
||||
pmem_dump_file.write_line("serial_format.parity: " + to_string_dec_uint(serial_format().parity));
|
||||
pmem_dump_file.write_line("serial_format.stop_bits: " + to_string_dec_uint(serial_format().stop_bits));
|
||||
@ -194,7 +194,7 @@ bool DebugDumpView::debug_dump_func() {
|
||||
// on screen information
|
||||
painter.draw_string({0, 320 - 16}, *ui::Theme::getInstance()->fg_green, filename.filename().string() + " DUMPED !");
|
||||
|
||||
chThdSleepMilliseconds( 10 * 1000 );
|
||||
chThdSleepMilliseconds(10 * 1000);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -43,8 +43,7 @@ class DebugDumpView : public View {
|
||||
private:
|
||||
NavigationView& nav_;
|
||||
Labels label{
|
||||
{{3 * 8, 2 * 16},"Dump Pmem",Theme::getInstance()->fg_light->foreground}};
|
||||
|
||||
{{3 * 8, 2 * 16}, "Dump Pmem", Theme::getInstance()->fg_light->foreground}};
|
||||
};
|
||||
|
||||
} // namespace ui::external_app::debug_pmem
|
||||
|
@ -571,7 +571,6 @@ void set_modem_baudrate(const int32_t new_value) {
|
||||
data->modem_baudrate = modem_baudrate_range.clip(new_value);
|
||||
}
|
||||
|
||||
|
||||
int32_t modem_bw() {
|
||||
return data->modem_bw;
|
||||
}
|
||||
@ -671,8 +670,7 @@ void set_gui_return_icon(bool v) {
|
||||
data->ui_config.show_gui_return_icon = v ? 1 : 0;
|
||||
}
|
||||
|
||||
bool load_app_settings()
|
||||
{
|
||||
bool load_app_settings() {
|
||||
return data->ui_config.load_app_settings;
|
||||
}
|
||||
|
||||
@ -680,8 +678,7 @@ void set_load_app_settings(bool v) {
|
||||
data->ui_config.load_app_settings = v ? 1 : 0;
|
||||
}
|
||||
|
||||
bool save_app_settings()
|
||||
{
|
||||
bool save_app_settings() {
|
||||
return data->ui_config.save_app_settings;
|
||||
}
|
||||
|
||||
@ -818,9 +815,8 @@ void set_recon_config_bit(uint8_t rc_bit, bool v) {
|
||||
auto bit_mask = 1LL << rc_bit;
|
||||
data->recon_config = v ? (data->recon_config | bit_mask) : (data->recon_config & ~bit_mask);
|
||||
}
|
||||
uint64_t get_recon_config()
|
||||
{
|
||||
return data->recon_config ;
|
||||
uint64_t get_recon_config() {
|
||||
return data->recon_config;
|
||||
}
|
||||
bool recon_autosave_freqs() {
|
||||
return check_recon_config_bit(RC_AUTOSAVE_FREQS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user