Ver código fonte

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

tags/v1.2.0
Bertrand Lemasle 6 anos atrás
pai
commit
741947db3d
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      GpsTracker/Core.cpp

+ 1
- 1
GpsTracker/Core.cpp Ver arquivo

@@ -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);
}


Carregando…
Cancelar
Salvar