issues changing locations

This commit is contained in:
Matt Walsh
2025-06-02 15:57:58 -05:00
parent 4bf3f4d1e0
commit 7c50f5f1d7
4 changed files with 54 additions and 6 deletions

View File

@@ -19,6 +19,8 @@ let hazardData;
// start drawing conditions
// reset starts from the first item in the text scroll list
const start = () => {
// if already started, nothing to do
if (interval) return;
// set up the interval if needed
if (!interval) {
interval = setInterval(incrementInterval, 500);
@@ -211,6 +213,7 @@ const drawScrollCondition = (screen) => {
const parseMessage = (event) => {
if (event?.data?.type === 'current-weather-scroll') {
if (event.data?.method === 'start') start();
if (event.data?.method === 'reload') stop(true);
}
};