Added exception handler

master
Sven Steudte 2017-10-30 00:38:16 +01:00
rodzic 117d90b30c
commit 311c532d1f
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -119,6 +119,8 @@ if args.device == 'I': # Source APRS-IS
buf += tn.read_eager().decode('ascii')
except EOFError: # Server has connection closed
wdg = 0 # Tell watchdog to restart connection
except UnicodeDecodeError:
pass
# Line handler
if '\n' in buf:

Wyświetl plik

@ -57,7 +57,7 @@ function drawItems() {
// Image Info Window
var infowindow = new google.maps.InfoWindow({
content: '<img src="' + value.img + '" />'
content: '<img src="' + value.img + '" width="512" height="384" />'
});
marker.addListener('mouseover', function() {
infowindow.open(map, marker);