save last_btn_state in set_btn_irq_state