A memset was used to clear two of the SAUL values in phydat_t::val The change is to replace that by the following res->val[1] = 0; res->val[2] = 0; which makes the code more obvious.