Skip to content

Commit

Permalink
AP_Periph: fixed FSO fans
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Feb 2, 2024
1 parent 56b04cc commit 0ed44f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tools/AP_Periph/FSOPowerStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void FSOPowerStack::fan_handler(uint8_t pin, bool pin_state, uint32_t timestamp)
fan.dt_sum += dt;
fan.dt_count++;
}
fan.last_pulse_us = timestamp;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions Tools/AP_Periph/FSOPowerStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class FSOPowerStack {
uint32_t dt_count;
float rpm;
};

uint32_t last_fan_ms;
uint32_t last_fan_report_ms;
FAN fans[4];
Expand Down

0 comments on commit 0ed44f0

Please sign in to comment.