/* Button press counter object dictionary handler function. 
This function is called upon SDO access to the button press counter object (index 0x2102) in the object dictionary. */
static CO_SDO_abortCode_t odf_2102(CO_ODF_arg_t *odf_arg)
/* Button press counter object dictionary handler function. 
This function is called upon SDO access to the button press counter object (index 0x2102) in the object dictionary. */
static CO_SDO_abortCode_t odf_2102(CO_ODF_arg_t *odf_arg)
{
	uint32_t value;
	value = CO_getUint32(odf_arg->data);
	if (odf_arg->reading) {
		return CO_SDO_AB_NONE;
	}
	if (odf_arg->subIndex != 0U) {
		return CO_SDO_AB_NONE;
	}
	if (value != 0) {
		memcpy(odf_arg->data, odf_arg->ODdataStorage, sizeof(uint32_t));
		return CO_SDO_AB_DATA_TRANSF;
	}
	LOG_INF("Resetting button press counter");
	counter = 0;
	return CO_SDO_AB_NONE;
}