File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ https://github.com/RobTillaart/MS5611
110
110
String filename = " " ;
111
111
uint16_t fn;
112
112
uint16_t count = 0 ;
113
+ uint16_t hit_count = 0 ; // clear events
113
114
boolean SDinserted = true ;
114
115
uint32_t hit_time[EVENTS]; // time of events
115
116
uint8_t hit_time_s100[EVENTS];
@@ -120,8 +121,6 @@ uint8_t ADCconf2;
120
121
uint8_t DIGconf1;
121
122
uint8_t DIGconf2;
122
123
123
- void (* resetFunc) (void ) = 0 ; // declare reset function at address 0
124
-
125
124
uint8_t bcdToDec (uint8_t b)
126
125
{
127
126
return ( ((b >> 4 )*10 ) + (b%16 ) );
@@ -172,6 +171,7 @@ int16_t readBat(int8_t regaddr)
172
171
173
172
uint8_t store = 0 ;
174
173
uint8_t batt = 0 ;
174
+ uint8_t hit_count = 0 ;
175
175
uint8_t env = 0 ;
176
176
uint8_t ainserted = 0 ;
177
177
@@ -1002,8 +1002,6 @@ void loop()
1002
1002
SPI.transfer16 (0x0000 );
1003
1003
digitalWrite (DRESET, HIGH);
1004
1004
1005
- uint16_t hit_count = 0 ; // clear events
1006
-
1007
1005
store = 0 ;
1008
1006
batt = 0 ;
1009
1007
env = 0 ;
You can’t perform that action at this time.
0 commit comments