From 7dba01bff143e19c84ef852279b9b2180746685d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 9 Jul 2019 13:11:31 +0100 Subject: [PATCH] Bugfix: Cast longitude to longitude byte array --- iot/main/main.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iot/main/main.ino b/iot/main/main.ino index 694a85c..1b9180a 100644 --- a/iot/main/main.ino +++ b/iot/main/main.ino @@ -28,12 +28,12 @@ void setup() { GPSLocation gps_data = gps_fetch(); DISPLAY_FREE_MEMORY(); - Serial.print(F("[main] Location ")); Serial.print(gps_data.lat); Serial.print(F(", ")); Serial.println(gps_data.lng); + // Serial.print(F("[main] Location ")); Serial.print(gps_data.lat); Serial.print(F(", ")); Serial.println(gps_data.lng); uint32_t id = random_get(); - Serial.print(F("[main] Id ")); - Serial.println(id); + // Serial.print(F("[main] Id ")); + // Serial.println(id); // Activate microSD card breakout board on the SPI bus @@ -60,7 +60,7 @@ void setup() { const uint8_t* bytes_id = reinterpret_cast(&id); const uint8_t* bytes_lat = reinterpret_cast(&(gps_data.lat)); - const uint8_t* bytes_lng = reinterpret_cast(&(gps_data.lat)); + const uint8_t* bytes_lng = reinterpret_cast(&(gps_data.lng)); // for(int i = 0; i < sizeof(uint32_t); i++) { // }