Build repeater settings from a spec list and stop fetching them on open
Repeater settings: - Each setting is declared once in repeaterSettingSpecs (key, section, input type, range, step, labels); the screen builds its control, refresh and save command from that list. - Add flood.max.advert, flood.max.unscoped, rxdelay, cad, adc.multiplier and extra.sf. adc.multiplier and extra.sf note their hardware limits (extra.sf is LR2021 only and its get reply has no "> " prefix). - Settings can be edited before they are fetched; only edited ones are sent. set radio needs freq, bw, sf and cr together, so a missing one is reported instead of silently skipping the radio. - Check tx delays against the firmware's 0-2 range. - Keep the not-loaded hint's list slot so the Advanced card doesn't collapse when the first value arrives. - New "Auto-fetch repeater settings" app setting, off by default: each get is a LoRa round trip. Fixes: - Adding a discovered contact sent its advert time as lastmod, making it the oldest contact; with overwrite-oldest on a full table the next add evicted it and it reappeared in the discovered list. Let the radio stamp its own clock. - Snackbars replace each other instead of queueing. Translations: add the new strings in all locales and fix widespread mistranslations in hu, ko, sk, sl and uk.
This commit is contained in:
1 parent
929d371061
commit
705267d98f
47 files changed
+4160
-3819
No files matched your search
+102
-48
@@ -5564,12 +5564,6 @@ abstract class AppLocalizations {
|
||||
/// **'Higher sensitivity, more current draw (SX1262/SX1268 only)'**
|
||||
String get repeater_rxGainHelper;
|
||||
|
||||
/// No description provided for @repeater_refreshRxGain.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh boosted RX gain'**
|
||||
String get repeater_refreshRxGain;
|
||||
|
||||
/// No description provided for @repeater_multiAcks.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -5582,12 +5576,6 @@ abstract class AppLocalizations {
|
||||
/// **'Acknowledge messages over multiple paths for better delivery'**
|
||||
String get repeater_multiAcksSubtitle;
|
||||
|
||||
/// No description provided for @repeater_refreshMultiAcks.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh multi-ACKs'**
|
||||
String get repeater_refreshMultiAcks;
|
||||
|
||||
/// No description provided for @repeater_networkHealth.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -5660,12 +5648,6 @@ abstract class AppLocalizations {
|
||||
/// **'Public metadata for this repeater'**
|
||||
String get repeater_ownerInfoHelper;
|
||||
|
||||
/// No description provided for @repeater_refreshOwnerInfo.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh operator info'**
|
||||
String get repeater_refreshOwnerInfo;
|
||||
|
||||
/// No description provided for @repeater_floodMax.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -5882,36 +5864,12 @@ abstract class AppLocalizations {
|
||||
/// **'Error saving settings: {error}'**
|
||||
String repeater_errorSavingSettings(String error);
|
||||
|
||||
/// No description provided for @repeater_refreshBasicSettings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh Basic Settings'**
|
||||
String get repeater_refreshBasicSettings;
|
||||
|
||||
/// No description provided for @repeater_refreshRadioSettings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh Radio Settings'**
|
||||
String get repeater_refreshRadioSettings;
|
||||
|
||||
/// No description provided for @repeater_refreshTxPower.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh TX power'**
|
||||
String get repeater_refreshTxPower;
|
||||
|
||||
/// No description provided for @repeater_refreshPacketForwarding.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh Packet Forwarding'**
|
||||
String get repeater_refreshPacketForwarding;
|
||||
|
||||
/// No description provided for @repeater_refreshGuestAccess.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Refresh Guest Access'**
|
||||
String get repeater_refreshGuestAccess;
|
||||
|
||||
/// No description provided for @repeater_refreshPrivacyMode.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -8894,6 +8852,18 @@ abstract class AppLocalizations {
|
||||
/// **'When opening a chat with unread messages, scroll to the first unread instead of the latest.'**
|
||||
String get appSettings_jumpToOldestUnreadSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_autoFetchRepeaterSettings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Auto-fetch repeater settings'**
|
||||
String get appSettings_autoFetchRepeaterSettings;
|
||||
|
||||
/// No description provided for @appSettings_autoFetchRepeaterSettingsSubtitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Request every setting when opening a repeater\'s settings. Each one is a separate request over LoRa, so this is slow and uses airtime. When off, tap Refresh All or refresh individual sections.'**
|
||||
String get appSettings_autoFetchRepeaterSettingsSubtitle;
|
||||
|
||||
/// No description provided for @appSettings_languageHu.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -9986,6 +9956,96 @@ abstract class AppLocalizations {
|
||||
/// **'{field}: enter a value'**
|
||||
String repeater_valueRequired(String field);
|
||||
|
||||
/// No description provided for @repeater_floodMaxAdvert.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Advert flood max hops'**
|
||||
String get repeater_floodMaxAdvert;
|
||||
|
||||
/// No description provided for @repeater_floodMaxAdvertHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Maximum hops a flooded advert may travel (0-64, default 8)'**
|
||||
String get repeater_floodMaxAdvertHelper;
|
||||
|
||||
/// No description provided for @repeater_floodMaxUnscoped.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Unscoped flood max hops'**
|
||||
String get repeater_floodMaxUnscoped;
|
||||
|
||||
/// No description provided for @repeater_floodMaxUnscopedHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Maximum hops for floods without a region scope (0-64, default 64). A low value such as 3 keeps unscoped traffic local.'**
|
||||
String get repeater_floodMaxUnscopedHelper;
|
||||
|
||||
/// No description provided for @repeater_floodMaxUnscopedUnset.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Same as flood max'**
|
||||
String get repeater_floodMaxUnscopedUnset;
|
||||
|
||||
/// No description provided for @repeater_rxDelay.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Receive delay'**
|
||||
String get repeater_rxDelay;
|
||||
|
||||
/// No description provided for @repeater_rxDelayHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Holds flood packets heard with a weak signal before forwarding, so strong-signal paths go first and fewer duplicates are sent (0-20, 0 turns it off).'**
|
||||
String get repeater_rxDelayHelper;
|
||||
|
||||
/// No description provided for @repeater_cad.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Channel activity detection'**
|
||||
String get repeater_cad;
|
||||
|
||||
/// No description provided for @repeater_cadHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Listen for activity before transmitting and wait while the channel is busy. Works alongside the interference threshold.'**
|
||||
String get repeater_cadHelper;
|
||||
|
||||
/// No description provided for @repeater_adcMultiplier.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Battery voltage calibration'**
|
||||
String get repeater_adcMultiplier;
|
||||
|
||||
/// No description provided for @repeater_adcMultiplierHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Multiplier for the battery voltage reading (0-10). 0 uses the board\'s default.'**
|
||||
String get repeater_adcMultiplierHelper;
|
||||
|
||||
/// No description provided for @repeater_boardSupportNote.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Not every board supports this. Unsupported boards reject the change.'**
|
||||
String get repeater_boardSupportNote;
|
||||
|
||||
/// No description provided for @repeater_extraSf.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Extra spreading factors'**
|
||||
String get repeater_extraSf;
|
||||
|
||||
/// No description provided for @repeater_extraSfHelper.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Up to 3 more spreading factors to listen on at the same time, separated by commas (for example 9,10). Leave empty to turn off.'**
|
||||
String get repeater_extraSfHelper;
|
||||
|
||||
/// No description provided for @repeater_lr2021Only.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Only for repeaters with an LR2021 radio. Other repeaters don\'t have this setting and reject it.'**
|
||||
String get repeater_lr2021Only;
|
||||
|
||||
/// No description provided for @losMapDetailTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
@@ -10687,12 +10747,6 @@ abstract class AppLocalizations {
|
||||
/// **'{setting}: {value} is not valid'**
|
||||
String repeater_invalidSettingValue(String setting, String value);
|
||||
|
||||
/// No description provided for @repeater_txPowerOutOfRange.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'TX power {value} is out of range ({min} to {max} dBm)'**
|
||||
String repeater_txPowerOutOfRange(String value, int min, int max);
|
||||
|
||||
/// No description provided for @repeater_prvKeyLengthError.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
Reference in new issue
Block a user