/* returns: 0 on success -2 if object initialization failed -1 on other fail  */
int16_t standby(void)
/* returns: 0 on success -2 if object initialization failed -1 on other fail  */
int16_t standby(void)
{
    if (dps310_ctx.m_initFail) {
        return DPS310__FAIL_INIT_FAILED;
    }
    int16_t ret = setOpMode(IDLE);
    if (ret != DPS310__SUCCEEDED) {
        return ret;
    }
    ret = writeByteBitfield(1U, DPS310__REG_INFO_FIFO_FL);
    if (ret < 0) {
        return ret;
    }
    ret = writeByteBitfield(0U, DPS310__REG_INFO_FIFO_EN);
    return ret;
}