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:
zjs81 committed 2026-10-25 14:46:31 -07:00
1 parent 929d371061
commit 705267d98f
47 files changed
+4160 -3819

No files matched your search

+64 -29
View File
@@ -3157,10 +3157,6 @@ class AppLocalizationsEs extends AppLocalizations {
String get repeater_rxGainHelper =>
'Mayor sensibilidad, mayor consumo de corriente (solo para SX1262/SX1268)';
@override
String get repeater_refreshRxGain =>
'Mejora el rendimiento de RX con la nueva versión.';
@override
String get repeater_multiAcks => 'ACK múltiples';
@@ -3168,9 +3164,6 @@ class AppLocalizationsEs extends AppLocalizations {
String get repeater_multiAcksSubtitle =>
'Reconocer mensajes a través de múltiples rutas para una mejor entrega.';
@override
String get repeater_refreshMultiAcks => 'Actualizar ACK múltiples';
@override
String get repeater_networkHealth => 'Salud de la red';
@@ -3211,10 +3204,6 @@ class AppLocalizationsEs extends AppLocalizations {
String get repeater_ownerInfoHelper =>
'Metadatos públicos para este repetidor';
@override
String get repeater_refreshOwnerInfo =>
'Actualizar información del propietario';
@override
String get repeater_floodMax => 'Máximo de saltos por inundación';
@@ -3348,22 +3337,9 @@ class AppLocalizationsEs extends AppLocalizations {
return 'Error al guardar la configuración: $error';
}
@override
String get repeater_refreshBasicSettings => 'Actualizar Configuración Básica';
@override
String get repeater_refreshRadioSettings => 'Actualizar Ajustes de Radio';
@override
String get repeater_refreshTxPower => 'Actualizar TX de energía';
@override
String get repeater_refreshPacketForwarding =>
'Actualizar Enrutamiento de Paquetes';
@override
String get repeater_refreshGuestAccess => 'Actualizar Acceso Invitados';
@override
String get repeater_refreshPrivacyMode => 'Actualizar Modo Privacidad';
@@ -5238,6 +5214,14 @@ class AppLocalizationsEs extends AppLocalizations {
String get appSettings_jumpToOldestUnreadSubtitle =>
'Cuando abras una conversación con mensajes sin leer, desplázate hacia el primer mensaje sin leer en lugar del más reciente.';
@override
String get appSettings_autoFetchRepeaterSettings =>
'Obtener automáticamente los ajustes del repetidor';
@override
String get appSettings_autoFetchRepeaterSettingsSubtitle =>
'Solicita todos los ajustes al abrir los ajustes de un repetidor. Cada uno es una solicitud independiente por LoRa, así que es lento y consume tiempo de aire. Si está desactivado, toca Actualizar todo o actualiza secciones individuales.';
@override
String get appSettings_languageHu => 'Húngaro';
@@ -5931,6 +5915,62 @@ class AppLocalizationsEs extends AppLocalizations {
return '$field: introduce un valor';
}
@override
String get repeater_floodMaxAdvert =>
'Máximo de saltos de anuncio por inundación';
@override
String get repeater_floodMaxAdvertHelper =>
'Máximo de saltos que puede recorrer un anuncio difundido por inundación (0-64, por defecto 8)';
@override
String get repeater_floodMaxUnscoped =>
'Máximo de saltos por inundación sin región';
@override
String get repeater_floodMaxUnscopedHelper =>
'Máximo de saltos para inundaciones sin ámbito de región (0-64, por defecto 64). Un valor bajo como 3 mantiene local el tráfico sin región.';
@override
String get repeater_floodMaxUnscopedUnset =>
'Igual que el máximo de inundación';
@override
String get repeater_rxDelay => 'Retardo de recepción';
@override
String get repeater_rxDelayHelper =>
'Retiene los paquetes de inundación oídos con señal débil antes de reenviarlos, para que las rutas con señal fuerte vayan primero y se envíen menos duplicados (0-20, 0 lo desactiva).';
@override
String get repeater_cad => 'Detección de actividad del canal';
@override
String get repeater_cadHelper =>
'Escucha si hay actividad antes de transmitir y espera mientras el canal está ocupado. Funciona junto con el límite de interferencia.';
@override
String get repeater_adcMultiplier => 'Calibración del voltaje de la batería';
@override
String get repeater_adcMultiplierHelper =>
'Multiplicador de la lectura del voltaje de la batería (0-10). 0 usa el valor por defecto de la placa.';
@override
String get repeater_boardSupportNote =>
'No todas las placas lo admiten. Las placas no compatibles rechazan el cambio.';
@override
String get repeater_extraSf => 'Factores de propagación (SF) adicionales';
@override
String get repeater_extraSfHelper =>
'Hasta 3 factores de propagación (SF) más para escuchar a la vez, separados por comas (por ejemplo 9,10). Déjalo vacío para desactivarlo.';
@override
String get repeater_lr2021Only =>
'Solo para repetidores con radio LR2021. Los demás repetidores no tienen este ajuste y lo rechazan.';
@override
String get losMapDetailTooltip => 'Detalle del mapa';
@@ -6386,11 +6426,6 @@ class AppLocalizationsEs extends AppLocalizations {
return '$setting: $value no es válido';
}
@override
String repeater_txPowerOutOfRange(String value, int min, int max) {
return 'La potencia TX $value está fuera de rango ($min a $max dBm)';
}
@override
String repeater_prvKeyLengthError(int length) {
return 'La clave privada debe tener exactamente $length caracteres hexadecimales';