mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 18:22:32 +00:00
Refactor away some code duplication in screen frames and display formatter for modem presets (#2872)
* Refactor away some duplication * Refactor preset names to display formatter method * Remove unused screen brightness adjustment and extract wifi disconnect reason name to display formatter method * Tronk * Let's be more clear with this naming * Effed * DisplayFormatters static class and use native wifi disconnect reason names method * git mv file so casing should match now * Include titlecase * Trunk
This commit is contained in:
8
src/DisplayFormatters.h
Normal file
8
src/DisplayFormatters.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
#include "NodeDB.h"
|
||||
|
||||
class DisplayFormatters
|
||||
{
|
||||
public:
|
||||
static const char *getModemPresetDisplayName(meshtastic_Config_LoRaConfig_ModemPreset preset, bool useShortName);
|
||||
};
|
||||
Reference in New Issue
Block a user