diff --git a/samples/tutorials/control/iic_address.cc b/samples/tutorials/control/iic_address.cc index 1401020..cd9667c 100644 --- a/samples/tutorials/control/iic_address.cc +++ b/samples/tutorials/control/iic_address.cc @@ -28,15 +28,15 @@ int main(int argc, char *argv[]) { api->ConfigStreamRequest(request); Model model = api->GetModel(); - if (model == Model::STANDARD210A) { + if (model == Model::STANDARD210A || model == Model::STANDARD2) { api->SetOptionValue(Option::IIC_ADDRESS_SETTING, 0x31); LOG(INFO) << "Set iic address to " << std::hex << "0x" << api->GetOptionValue(Option::IIC_ADDRESS_SETTING); } - // MYNTEYE-S1030/S2100 don't support this option - if (model == Model::STANDARD2 || model == Model::STANDARD) { - LOG(INFO) << "Sorry,MYNTEYE-S1030/S2100 don't support iic address setting"; + // MYNTEYE-S1030 don't support this option + if (model == Model::STANDARD) { + LOG(INFO) << "Sorry,MYNTEYE-S1030 don't support iic address setting"; return 0; } diff --git a/src/mynteye/device/config.cc b/src/mynteye/device/config.cc index c9c21db..a65489e 100644 --- a/src/mynteye/device/config.cc +++ b/src/mynteye/device/config.cc @@ -45,7 +45,8 @@ const std::map option_supports_map = { Option::IR_CONTROL, Option::MIN_EXPOSURE_TIME, Option::DESIRED_BRIGHTNESS, Option::ACCELEROMETER_RANGE, Option::GYROSCOPE_RANGE, Option::ACCELEROMETER_LOW_PASS_FILTER, - Option::GYROSCOPE_LOW_PASS_FILTER, Option::ERASE_CHIP} + Option::GYROSCOPE_LOW_PASS_FILTER, Option::IIC_ADDRESS_SETTING, + Option::ERASE_CHIP} }, {Model::STANDARD210A, { Option::BRIGHTNESS,