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
@@ -1302,7 +1302,7 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String contacts_searchContacts(int number, String str) {
|
||||
return 'Pesquisar contatos...';
|
||||
return 'Pesquisar $number$str contatos...';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -3158,9 +3158,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get repeater_rxGainHelper =>
|
||||
'Maior sensibilidade, maior consumo de corrente (apenas para SX1262/SX1268)';
|
||||
|
||||
@override
|
||||
String get repeater_refreshRxGain => 'Reforçar o ganho do RX';
|
||||
|
||||
@override
|
||||
String get repeater_multiAcks => 'Múltiplas respostas de confirmação';
|
||||
|
||||
@@ -3168,9 +3165,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get repeater_multiAcksSubtitle =>
|
||||
'Reconheça mensagens através de múltiplos caminhos para uma melhor entrega.';
|
||||
|
||||
@override
|
||||
String get repeater_refreshMultiAcks => 'Reiniciar múltiplas confirmações';
|
||||
|
||||
@override
|
||||
String get repeater_networkHealth => 'Saúde da rede';
|
||||
|
||||
@@ -3212,9 +3206,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get repeater_ownerInfoHelper =>
|
||||
'Metadados públicos para este repetidor';
|
||||
|
||||
@override
|
||||
String get repeater_refreshOwnerInfo => 'Atualizar informações do operador';
|
||||
|
||||
@override
|
||||
String get repeater_floodMax =>
|
||||
'Número máximo de saltos em caso de inundação';
|
||||
@@ -3349,23 +3340,10 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return 'Erro ao salvar as configurações: $error';
|
||||
}
|
||||
|
||||
@override
|
||||
String get repeater_refreshBasicSettings => 'Atualizar Configurações Básicas';
|
||||
|
||||
@override
|
||||
String get repeater_refreshRadioSettings =>
|
||||
'Atualizar Configurações de Rádio';
|
||||
|
||||
@override
|
||||
String get repeater_refreshTxPower => 'Atualizar TX de energia';
|
||||
|
||||
@override
|
||||
String get repeater_refreshPacketForwarding =>
|
||||
'Atualizar Roteamento de Pacotes';
|
||||
|
||||
@override
|
||||
String get repeater_refreshGuestAccess => 'Atualizar Acesso de Convidados';
|
||||
|
||||
@override
|
||||
String get repeater_refreshPrivacyMode => 'Atualizar Modo Privacidade';
|
||||
|
||||
@@ -5237,6 +5215,14 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
String get appSettings_jumpToOldestUnreadSubtitle =>
|
||||
'Ao abrir uma conversa com mensagens não lidas, role para a primeira mensagem não lida, em vez da mais recente.';
|
||||
|
||||
@override
|
||||
String get appSettings_autoFetchRepeaterSettings =>
|
||||
'Buscar automaticamente as configurações do repetidor';
|
||||
|
||||
@override
|
||||
String get appSettings_autoFetchRepeaterSettingsSubtitle =>
|
||||
'Solicita todas as configurações ao abrir as configurações de um repetidor. Cada uma é uma solicitação separada via LoRa, então é lento e consome tempo de transmissão. Quando desativado, toque em Atualizar tudo ou atualize seções individuais.';
|
||||
|
||||
@override
|
||||
String get appSettings_languageHu => 'Húngaro';
|
||||
|
||||
@@ -5926,6 +5912,61 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return '$field: insira um valor';
|
||||
}
|
||||
|
||||
@override
|
||||
String get repeater_floodMaxAdvert =>
|
||||
'Máximo de saltos de inundação de anúncios';
|
||||
|
||||
@override
|
||||
String get repeater_floodMaxAdvertHelper =>
|
||||
'Número máximo de saltos que um anúncio inundado pode percorrer (0-64, padrão 8)';
|
||||
|
||||
@override
|
||||
String get repeater_floodMaxUnscoped =>
|
||||
'Máximo de saltos de inundação sem escopo';
|
||||
|
||||
@override
|
||||
String get repeater_floodMaxUnscopedHelper =>
|
||||
'Número máximo de saltos para inundações sem escopo de região (0-64, padrão 64). Um valor baixo, como 3, mantém o tráfego sem escopo local.';
|
||||
|
||||
@override
|
||||
String get repeater_floodMaxUnscopedUnset => 'Igual ao máximo de inundação';
|
||||
|
||||
@override
|
||||
String get repeater_rxDelay => 'Atraso de recepção';
|
||||
|
||||
@override
|
||||
String get repeater_rxDelayHelper =>
|
||||
'Retém pacotes de inundação ouvidos com sinal fraco antes de encaminhá-los, para que os caminhos com sinal forte tenham prioridade e menos duplicatas sejam enviadas (0-20, 0 desativa).';
|
||||
|
||||
@override
|
||||
String get repeater_cad => 'Detecção de atividade do canal';
|
||||
|
||||
@override
|
||||
String get repeater_cadHelper =>
|
||||
'Escuta a atividade antes de transmitir e aguarda enquanto o canal estiver ocupado. Funciona em conjunto com o limite de interferência.';
|
||||
|
||||
@override
|
||||
String get repeater_adcMultiplier => 'Calibração da tensão da bateria';
|
||||
|
||||
@override
|
||||
String get repeater_adcMultiplierHelper =>
|
||||
'Multiplicador da leitura da tensão da bateria (0-10). 0 usa o padrão da placa.';
|
||||
|
||||
@override
|
||||
String get repeater_boardSupportNote =>
|
||||
'Nem toda placa oferece suporte a isso. Placas sem suporte rejeitam a alteração.';
|
||||
|
||||
@override
|
||||
String get repeater_extraSf => 'Fatores de dispersão extras';
|
||||
|
||||
@override
|
||||
String get repeater_extraSfHelper =>
|
||||
'Até 3 fatores de dispersão adicionais para escutar ao mesmo tempo, separados por vírgulas (por exemplo, 9,10). Deixe vazio para desativar.';
|
||||
|
||||
@override
|
||||
String get repeater_lr2021Only =>
|
||||
'Somente para repetidores com rádio LR2021. Os demais repetidores não têm esta configuração e a rejeitam.';
|
||||
|
||||
@override
|
||||
String get losMapDetailTooltip => 'Detalhe do mapa';
|
||||
|
||||
@@ -6381,11 +6422,6 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
return '$setting: $value não é válido';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_txPowerOutOfRange(String value, int min, int max) {
|
||||
return 'Potência de TX $value fora do intervalo ($min a $max dBm)';
|
||||
}
|
||||
|
||||
@override
|
||||
String repeater_prvKeyLengthError(int length) {
|
||||
return 'A chave privada deve ter exatamente $length caracteres hexadecimais';
|
||||
|
||||
Reference in new issue
Block a user