res = i2c_smbus_write_word_data(file, daddress, value);break;default:/* I2C_SMBUS_BYTE_DATA */res =i2c_smbus_write_byte_data(file, daddress, value); }if(res <0) {fprintf(stderr,"Error: Write failed\n"); close(file);exit(1); }if(pec) {if(ioctl(file, I2C_PEC,0) <0) ...