This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Increase current consumption with app_button

Hi All,

I am using SDK17 for my application currently. To sense ping change I am using app_button function as below. Normally my port pin remains high and current consumption of board is 6 uA with no advertisement. But when my port pin goes low, current increase to 15 uA. This behavior was not in SDK15.3. Current was normal in SDK15.3 in high or low pin cases. Can anybody help here?

void buttons_init(void)
{

static app_button_cfg_t buttons[] =
{
{DOOR1_SWITCH, APP_BUTTON_ACTIVE_LOW, NRF_GPIO_PIN_NOPULL,button_event_handler},
};

app_button_init(buttons, sizeof(buttons) / sizeof(buttons[0]), BUTTON_DETECTION_DELAY);
}

Regards,

Bipin Patel

Parents Reply
  • Hi,

    I have assigned the ticket to me as Stian is currently out of the office.

    karanbakshi said:
    Should we consider this as a bug as in many application GPIO normally remain low and on some events it become high. so what should we do in this cases with SDK17 app_button library?

     The button library is mainly designed with push buttons in mind. And the changes in SDK 17 were made to reduce the chance of missed events when having multiple buttons triggered around the same time.

    karanbakshi said:
    Is it fine if I use app_button library of SDK15.3 into SDK17 based application? Is any chance of issue in any way in future?

     It shouldn't be any problem to use the old library with SDK 17.

    Best regards,

    Vidar

Children
Related