feat(decoder): warn when the decoder's clock is off (1.42.4)
The decoder's time is never changed. Passings (also during warm-up) measure it against the computer's clock, and Race Day's preflight and the decoder diagnostics warn when it is over a minute off, e.g. after the switch to winter time.
This commit is contained in:
1 parent
ca88fd9ecc
commit
35eb3eb059
14 files changed
+180
-5
No files matched your search
@@ -37,6 +37,10 @@ function renderPreflightDetail(item, { t, formatLap, escapeHtml }) {
|
||||
if (item.id === "duplicate_transponders" && item.duplicates?.length) return escapeHtml(item.duplicates.join(", "));
|
||||
if (item.id === "duplicate_team_members" && item.duplicateTeamMemberNames?.length) return escapeHtml(item.duplicateTeamMemberNames.join(", "));
|
||||
if (item.id === "transponder_check") return `${item.seen}/${item.total}`;
|
||||
if (item.id === "decoder_clock") {
|
||||
const amount = `${item.hours ? `${item.hours} h ` : ""}${item.minutes ? `${item.minutes} min` : ""}`.trim();
|
||||
return t(item.ahead ? "race_day.decoder_clock_ahead" : "race_day.decoder_clock_behind", { amount });
|
||||
}
|
||||
if (item.id === "grid") return item.notRequired ? t("race_day.not_required") : `${item.count || 0}/${item.expectedCount || 0}`;
|
||||
return t(`race_day.check_${item.level}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user