Skip to content

Commit 11c4b23

Browse files
committed
Declare missing global variable hit_count
Remove reset function.
1 parent 3f856f8 commit 11c4b23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fw/AIRDOS04/AIRDOS04.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ https://github.com/RobTillaart/MS5611
110110
String filename = "";
111111
uint16_t fn;
112112
uint16_t count = 0;
113+
uint16_t hit_count = 0; // clear events
113114
boolean SDinserted = true;
114115
uint32_t hit_time[EVENTS]; // time of events
115116
uint8_t hit_time_s100[EVENTS];
@@ -120,8 +121,6 @@ uint8_t ADCconf2;
120121
uint8_t DIGconf1;
121122
uint8_t DIGconf2;
122123

123-
void(* resetFunc) (void) = 0; //declare reset function at address 0
124-
125124
uint8_t bcdToDec(uint8_t b)
126125
{
127126
return ( ((b >> 4)*10) + (b%16) );
@@ -172,6 +171,7 @@ int16_t readBat(int8_t regaddr)
172171

173172
uint8_t store = 0;
174173
uint8_t batt = 0;
174+
uint8_t hit_count = 0;
175175
uint8_t env = 0;
176176
uint8_t ainserted = 0;
177177

@@ -1002,8 +1002,6 @@ void loop()
10021002
SPI.transfer16(0x0000);
10031003
digitalWrite(DRESET, HIGH);
10041004

1005-
uint16_t hit_count = 0; // clear events
1006-
10071005
store = 0;
10081006
batt = 0;
10091007
env = 0;

0 commit comments

Comments
 (0)