Skip to content

Commit

Permalink
Only show debug info if compiled with DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoneMR committed May 20, 2013
1 parent 10d2c4c commit 9298aff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Any of "us", "ca", "uk" (for idiosyncratic US, Candian and British measurements),
// "si" (for pure metric) or "auto" (determined by the above latitude/longitude)
#define UNIT_SYSTEM "auto"
//#define DEBUG
5 changes: 4 additions & 1 deletion src/link_monitor.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "link_monitor.h"
#include "config.h"

enum LinkStatus
{
Expand Down Expand Up @@ -28,10 +29,12 @@ void link_monitor_handle_failure(int error)
case 1064: //APP_MSG_BUSY
//These are more likely to specify a temporary error than a lost watch
return;


#ifdef DEBUG
default:
//Unrecognised failure reason. Debug.
text_layer_set_text(&date_layer, itoa(error));
#endif
}

if(__linkStatus == LinkStatusOK)
Expand Down

0 comments on commit 9298aff

Please sign in to comment.