update some timing

sipo
Ondřej Hruška 7 years ago
parent 83a01aa1bc
commit bd281564b3
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      platform/status_led.c
  2. 3
      platform/status_led.h

@ -16,7 +16,7 @@ static uint32_t effect_time = 0;
// counter of idle ticks since last indicator // counter of idle ticks since last indicator
// used to allow or disallow heartbeat blink (to avoid interference) // used to allow or disallow heartbeat blink (to avoid interference)
static uint32_t indicator_idle_ms = 0; static uint32_t indicator_idle_ms = 0;
#define IDLE_FOR_HEARTBEAT_MS 2500 #define IDLE_FOR_HEARTBEAT_MS 3000
#define HB_MAX_SAFE_IVAL 500 #define HB_MAX_SAFE_IVAL 500
static uint32_t hb_elapsed = 0; static uint32_t hb_elapsed = 0;

@ -16,8 +16,7 @@ enum GEX_StatusIndicator {
STATUS_DISK_BUSY, STATUS_DISK_BUSY,
STATUS_DISK_ATTACHED, STATUS_DISK_ATTACHED,
STATUS_DISK_REMOVED, STATUS_DISK_REMOVED,
STATUS_HEARTBEAT, STATUS_HEARTBEAT
_INDICATOR_COUNT
}; };
/** /**

Loading…
Cancel
Save