add checking timeout

This commit is contained in:
Sem van der Hoeven
2023-06-08 13:04:09 +02:00
parent ba0fdc7863
commit 4138673893

View File

@@ -318,6 +318,7 @@
document.getElementById("failsafe").style.textDecoration = "bold"; document.getElementById("failsafe").style.textDecoration = "bold";
alert("Failsafe enabled! Drone is landing. The failsafe message is:\n" + data.message); alert("Failsafe enabled! Drone is landing. The failsafe message is:\n" + data.message);
} else if (data.type == "API_HEARTBEAT") { } else if (data.type == "API_HEARTBEAT") {
concole.log("Got heartbeat from API")
clearTimeout(api_timout); clearTimeout(api_timout);
} else { } else {
// decodeBase64Image(data.image, document.getElementById("result-video")); // decodeBase64Image(data.image, document.getElementById("result-video"));