scope reduction

This commit is contained in:
Peter Buchegger 2020-05-29 21:20:27 +02:00
parent a240d10ead
commit 757a0b5967

View file

@ -47,7 +47,6 @@ void setup()
// cppcheck-suppress unusedFunction
void loop()
{
static int update_min = -1;
while (ss.available() > 0)
{
char c = ss.read();
@ -57,6 +56,7 @@ void loop()
if(gps.time.isUpdated())
{
static int update_min = -1;
if(gps.time.isValid()
&& (gps.time.minute() == update_min || update_min == -1)
&& gps.location.isValid()