diff --git a/firmware/common/aprs_packet.hpp b/firmware/common/aprs_packet.hpp index 47bcf3d4..52894b19 100644 --- a/firmware/common/aprs_packet.hpp +++ b/firmware/common/aprs_packet.hpp @@ -276,7 +276,7 @@ class APRSPacket { if (!is_digits(sub)) { return 0; } else { - return std::stoi(sub); + return atoi(sub.c_str()); } }