Add: power on with context, SIM808 support

This commit is contained in:
Andrey Egorov
2024-08-19 17:07:46 +03:00
parent 3f5412fac0
commit 509006fae1
8 changed files with 129 additions and 46 deletions

View File

@ -39,7 +39,7 @@ func secondCountDownTimer(title string, logger *log.Logger, t time.Duration) {
if counter > int(t.Seconds()) {
break
}
logger.Printf("%s: %d/%f\n", title, counter, t.Seconds())
// logger.Printf("%s: %d/%f\n", title, counter, t.Seconds())
time.Sleep(time.Second)
counter += 1
}
@ -118,7 +118,7 @@ func (g *gps) collectNmeaReports(flags nmeaFlags) ([]string, error) {
}
// DEBUG
// g.logger.Println("NMEA raw collect:", resp)
g.logger.Println("NMEA raw collect:", resp)
// Right responce struct:
// \r\n