scope reduction
This commit is contained in:
parent
a240d10ead
commit
757a0b5967
|
@ -47,7 +47,6 @@ void setup()
|
||||||
// cppcheck-suppress unusedFunction
|
// cppcheck-suppress unusedFunction
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
static int update_min = -1;
|
|
||||||
while (ss.available() > 0)
|
while (ss.available() > 0)
|
||||||
{
|
{
|
||||||
char c = ss.read();
|
char c = ss.read();
|
||||||
|
@ -57,6 +56,7 @@ void loop()
|
||||||
|
|
||||||
if(gps.time.isUpdated())
|
if(gps.time.isUpdated())
|
||||||
{
|
{
|
||||||
|
static int update_min = -1;
|
||||||
if(gps.time.isValid()
|
if(gps.time.isValid()
|
||||||
&& (gps.time.minute() == update_min || update_min == -1)
|
&& (gps.time.minute() == update_min || update_min == -1)
|
||||||
&& gps.location.isValid()
|
&& gps.location.isValid()
|
||||||
|
|
Loading…
Reference in a new issue