/* Frame handler for the low power mode widget. 
Handles all command events from the widgets in the application frame. */
static bool widget_lpm_command_handler(struct wtk_basic_frame *frame, win_command_t command_data)
/* Frame handler for the low power mode widget. 
Handles all command events from the widgets in the application frame. */
static bool widget_lpm_command_handler(struct wtk_basic_frame *frame, win_command_t command_data)
{
	char command;
	command = (uintptr_t)command_data;
	UNUSED(frame);
	switch (command) {
	case ICON_LPM_WAIT_ID:
		app_widget_lpm_on(false);
		app_widget_lpm_wait_on(true);
		break;
	case ICON_LPM_SLEEP_ID:
		app_widget_lpm_on(false);
		app_widget_lpm_sleep_on(true);
		break;
	case ICON_LPM_BACKUP_ID:
		app_widget_lpm_on(false);
		app_widget_lpm_backup_on(true);
		break;
	case ICON_LPM_RET_ID:
		app_widget_lpm_on(false);
		app_widget_main_on(true);
		break;
	}
	return false;
}