Permalink
Browse files

Fixed variable scope issues in libraries.

  • Loading branch information...
1 parent 960c416 commit 8fec0a40b10d594c5e3a352ff340747650cd2542 @reefab committed Jun 1, 2014
Showing with 12 additions and 0 deletions.
  1. +8 −0 src/display.h
  2. +1 −0 src/ntp.h
  3. +3 −0 src/runkeeper.h
View
@@ -1,7 +1,15 @@
// vim: filetype=arduino
+extern float currentSpeed;
+extern unsigned int totalDistance;
+extern unsigned long effectiveTime;
+extern volatile boolean paused;
+extern LcdWrapper Lcd;
+
#include <stdlib.h>
+// Change the data displayed on the second line of the lcd every X seconds
+#define changeSecondLine 3
#define numberOfSecondLine 3
#define pause_str "--===Paused===--"
#define speed_str "Speed: "
View
@@ -1,4 +1,5 @@
// vim: filetype=arduino
+extern DNSClient Dns;
// NTP
const unsigned int localPort = 8888; // local port to listen for UDP packets
const int NTP_PACKET_SIZE= 48; // NTP time stamp is in the first 48 bytes of the message
View
@@ -7,6 +7,9 @@
* Author: reefab
*/
+extern LcdWrapper Lcd;
+extern EthernetClient client;
+
IPAddress api_server;
boolean uploadResult(String startTimeStr, unsigned int totalDistance, unsigned long effectiveTime)

0 comments on commit 8fec0a4

Please sign in to comment.