Hi there
I'm reading through the sample code for the ZMOD4410 2nd Gen, ULP and PBAQ.There is a function called after the read measurement call e.g. zmod4xxx_check_error_event(sensor);
One of the return values that is checked in the switch is ZMOD4XXX_OK - this gives and error. Is this correct?It seems as though this is wrong. Can someone confirm this is correct??
/* Check if measurement is running. */ if (zmod4xxx_status & STATUS_SEQUENCER_RUNNING_MASK) { /* Check if reset during measurement occured. For more information, * read the Programming Manual, section "Error Codes". */ ret = zmod4xxx_check_error_event(sensor); switch (ret) { case ERROR_POR_EVENT: HAL_HandleError(ret, "Reading result: Unexpected sensor reset!"); break; case ZMOD4XXX_OK: HAL_HandleError(ret, "Reading result: Wrong sensor setup!"); break; default: HAL_HandleError(ret, "Reading result: Unknown error!"); break; } }
Thank you!