universal7885: Don't add new member to struct

* Because 2 structs are different, causing issues

Change-Id: Iafacbea214611631447764cc27bc3b4e533b2a76
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2022-02-24 14:39:11 +09:00
commit 73cfd8f781
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
2 changed files with 1 additions and 2 deletions

View file

@ -97,7 +97,6 @@ protected:
const sp<CameraModule> mModule;
const std::string mCameraId;
std::string mCameraID;
// const after ctor
int mCameraIdInt;
int mDeviceVersion;

View file

@ -79,7 +79,7 @@ Return<void> CameraDevice::open(const sp<ICameraDeviceCallback>& callback,
status_t res;
camera3_device_t *device;
mCameraID = mCameraId;
std::string mCameraID = mCameraId;
if (mCameraIdInt == 1) mCameraIdInt = 2;
if (mCameraID == "1") mCameraID = "2";