mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Update comments on CAN_STILL_ALIVE
This commit is contained in:
parent
ca9322aa81
commit
b4773d89d8
2 changed files with 7 additions and 3 deletions
|
@ -71,8 +71,11 @@ typedef struct {
|
|||
/** A counter that increases incase a CAN CRC read error occurs */
|
||||
uint16_t CAN_error_counter;
|
||||
/** uint8_t */
|
||||
/** A counter set each time a new message comes from battery.*/
|
||||
uint8_t CAN_battery_still_alive = 12;
|
||||
/** A counter set each time a new message comes from battery.
|
||||
* This value then gets decremented each 5 seconds. Incase we reach 0
|
||||
* we report the battery as missing entirely on the CAN bus.
|
||||
*/
|
||||
uint8_t CAN_battery_still_alive = CAN_STILL_ALIVE;
|
||||
|
||||
/** Other */
|
||||
/** The current BMS status */
|
||||
|
|
|
@ -28,6 +28,7 @@ enum led_color { GREEN, YELLOW, RED, BLUE, RGB };
|
|||
#define INTERVAL_100_MS_DELAYED 120
|
||||
#define INTERVAL_500_MS_DELAYED 550
|
||||
|
||||
#define CAN_STILL_ALIVE 12
|
||||
#define CAN_STILL_ALIVE \
|
||||
12 // Set by battery each time we get a CAN message. Decrements every 5seconds. Incase we reach 0 (after 60 seconds of inactivity)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue