Explorar el Código

Changed parseSubstring to return uint16_t to avoid cast issue for year

tags/v1.3.0^2
Bertrand Lemasle hace 6 años
padre
commit
62b33ce260
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/Gps.cpp

+ 2
- 2
src/Gps.cpp Ver fichero

@@ -19,9 +19,9 @@
namespace gps {
namespace details {
uint8_t parseSubstring(char *buffer, char *start, uint8_t size) {
uint16_t parseSubstring(char *buffer, char *start, uint8_t size) {
strlcpy(buffer, start, size + 1);
return static_cast<uint8_t>(strtoul(buffer, NULL, 10));
return static_cast<uint16_t>(strtoul(buffer, NULL, 10));
}
}


Cargando…
Cancelar
Guardar