From 33c16de0d5a7ecdc832810017efd18f6f26a8c4d Mon Sep 17 00:00:00 2001 From: andrekir Date: Fri, 8 Sep 2023 16:37:41 -0300 Subject: [PATCH] refactor: reorder modemPreset enum --- .../java/com/geeksville/mesh/model/ChannelOption.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/model/ChannelOption.kt b/app/src/main/java/com/geeksville/mesh/model/ChannelOption.kt index 675ece351..5ba50204f 100644 --- a/app/src/main/java/com/geeksville/mesh/model/ChannelOption.kt +++ b/app/src/main/java/com/geeksville/mesh/model/ChannelOption.kt @@ -65,14 +65,15 @@ enum class ChannelOption( val configRes: Int, val bandwidth: Float, ) { - LONG_SLOW(ModemPreset.LONG_SLOW, R.string.modem_config_slow_long, .125f), - VERY_LONG_SLOW(ModemPreset.VERY_LONG_SLOW, R.string.modem_config_very_long, .0625f), - MEDIUM_SLOW(ModemPreset.MEDIUM_SLOW, R.string.modem_config_slow_medium, .250f), - MEDIUM_FAST(ModemPreset.MEDIUM_FAST, R.string.modem_config_medium, .250f), - SHORT_SLOW(ModemPreset.SHORT_SLOW, R.string.modem_config_slow_short, .250f), SHORT_FAST(ModemPreset.SHORT_FAST, R.string.modem_config_short, .250f), + SHORT_SLOW(ModemPreset.SHORT_SLOW, R.string.modem_config_slow_short, .250f), + MEDIUM_FAST(ModemPreset.MEDIUM_FAST, R.string.modem_config_medium, .250f), + MEDIUM_SLOW(ModemPreset.MEDIUM_SLOW, R.string.modem_config_slow_medium, .250f), + LONG_FAST(ModemPreset.LONG_FAST, R.string.modem_config_long, .250f), LONG_MODERATE(ModemPreset.LONG_MODERATE, R.string.modem_config_mod_long, .125f), - LONG_FAST(ModemPreset.LONG_FAST, R.string.modem_config_long, .250f); + LONG_SLOW(ModemPreset.LONG_SLOW, R.string.modem_config_slow_long, .125f), + VERY_LONG_SLOW(ModemPreset.VERY_LONG_SLOW, R.string.modem_config_very_long, .0625f), + ; companion object { fun bandwidth(modemPreset: ModemPreset?): Float {