Skip to content

Commit

Permalink
Declare missing global variable hit_count
Browse files Browse the repository at this point in the history
Remove reset function.
  • Loading branch information
kaklik committed Jun 15, 2024
1 parent 3f856f8 commit 11c4b23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fw/AIRDOS04/AIRDOS04.ino
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ https://github.com/RobTillaart/MS5611
String filename = "";
uint16_t fn;
uint16_t count = 0;
uint16_t hit_count = 0; // clear events
boolean SDinserted = true;
uint32_t hit_time[EVENTS]; // time of events
uint8_t hit_time_s100[EVENTS];
Expand All @@ -120,8 +121,6 @@ uint8_t ADCconf2;
uint8_t DIGconf1;
uint8_t DIGconf2;

void(* resetFunc) (void) = 0; //declare reset function at address 0

uint8_t bcdToDec(uint8_t b)
{
return ( ((b >> 4)*10) + (b%16) );
Expand Down Expand Up @@ -172,6 +171,7 @@ int16_t readBat(int8_t regaddr)

uint8_t store = 0;
uint8_t batt = 0;
uint8_t hit_count = 0;
uint8_t env = 0;
uint8_t ainserted = 0;

Expand Down Expand Up @@ -1002,8 +1002,6 @@ void loop()
SPI.transfer16(0x0000);
digitalWrite(DRESET, HIGH);

uint16_t hit_count = 0; // clear events

store = 0;
batt = 0;
env = 0;
Expand Down

0 comments on commit 11c4b23

Please sign in to comment.