Explorar el Código

Fixed start of sms message not at the start of the buffer

tags/v1.2.0
Bertrand Lemasle hace 6 años
padre
commit
741947db3d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      GpsTracker/Core.cpp

+ 1
- 1
GpsTracker/Core.cpp Ver fichero

@@ -65,7 +65,7 @@ namespace core {

if (!network::isAvailable(networkStatus.stat)) return NO_ALERTS_NOTIFIED;

details::appendToSmsBuffer(buffer, PSTR("Alerts !\n"));
strncpy_P(buffer, PSTR("Alerts !\n"), SMS_BUFFER_SIZE);
if (bitRead(triggered, ALERT_BATTERY_LEVEL_1) || bitRead(triggered, ALERT_BATTERY_LEVEL_2)) {
details::appendToSmsBuffer(buffer, PSTR("- Battery at %d%%.\n"), metadata.batteryLevel);
}


Cargando…
Cancelar
Guardar