Skip to content

Commit 8b9b020

Browse files
committed
Removed hard-coded error numbers. Updated ignore to avoid lock files.
1 parent 08bf8d7 commit 8b9b020

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

.gitignore

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
#################
2+
## SparkFun Useful stuff
3+
#################
4+
5+
## AVR Development
6+
*.eep
7+
*.elf
8+
*.lst
9+
*.lss
10+
*.sym
11+
*.d
12+
*.o
13+
*.srec
14+
*.map
15+
16+
## Notepad++ backup files
17+
*.bak
18+
19+
## BOM files
20+
*bom*
21+
122
#################
223
## Eclipse
324
#################
@@ -33,9 +54,11 @@ local.properties
3354
## Eagle
3455
#############
3556

36-
# Ignore the board and schematic backup files
57+
# Ignore the board and schematic backup files and lock files
3758
*.b#?
3859
*.s#?
60+
*.l#?
61+
*.lck
3962

4063

4164
#################
@@ -135,6 +158,21 @@ Thumbs.db
135158
Desktop.ini
136159

137160

161+
#############
162+
## Mac OS
163+
#############
164+
165+
.DS_Store
166+
167+
168+
#############
169+
## Linux
170+
#############
171+
172+
# backup files (*.bak on Win)
173+
*~
174+
175+
138176
#############
139177
## Python
140178
#############
@@ -166,6 +204,3 @@ pip-log.txt
166204

167205
#Mr Developer
168206
.mr.developer.cfg
169-
170-
# Mac crap
171-
.DS_Store

firmware/Weather_Shield_Basic/Weather_Shield_Basic.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void loop()
6969
//Check Humidity Sensor
7070
float humidity = myHumidity.readHumidity();
7171

72-
if (humidity == 998) //Humidty sensor failed to respond
72+
if (humidity == ERROR_I2C_TIMEOUT) //Humidty sensor failed to respond
7373
{
7474
Serial.println("I2C communication to sensors is not working. Check solder connections.");
7575

0 commit comments

Comments
 (0)