Skip to main content

PIN_MAX_RETRIES

Constant PIN_MAX_RETRIES 

Source
pub(crate) const PIN_MAX_RETRIES: u8 = 5;
Expand description

Size of one PIN batch on Counter0. The “effective tries” available to the user inside a batch is PIN_MAX_RETRIES - 1 (= 4), because refresh_counter_batch lands count one past the next multiple so that count % PIN_MAX_RETRIES == 0 is an unambiguous saturation signal usable by emergency_reset. See service::retries_remaining.