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:
Ben Meadors
2023-10-09 20:43:16 -05:00
committed by GitHub
parent 10265aabd5
commit 87396d9105
5 changed files with 95 additions and 218 deletions

8
src/DisplayFormatters.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include "NodeDB.h"
class DisplayFormatters
{
public:
static const char *getModemPresetDisplayName(meshtastic_Config_LoRaConfig_ModemPreset preset, bool useShortName);
};