/* If both batteries are good, no LED If either battery has been warned, solid LED If both batteries are bad, flash the LED quickly If either battery is bad, flash the LED semi quickly  */
static void set_fault_to_battery_status(struct cardinfo *card)
/* If both batteries are good, no LED If either battery has been warned, solid LED If both batteries are bad, flash the LED quickly If either battery is bad, flash the LED semi quickly  */
static void set_fault_to_battery_status(struct cardinfo *card)
{
	if (card->battery[0].good && card->battery[1].good)
		set_led(card, LED_FAULT, LED_OFF);
	else if (card->battery[0].warned || card->battery[1].warned)
		set_led(card, LED_FAULT, LED_ON);
	else if (!card->battery[0].good && !card->battery[1].good)
		set_led(card, LED_FAULT, LED_FLASH_7_0);
	else
		set_led(card, LED_FAULT, LED_FLASH_3_5);
}