Skip to content

Commit 01758db

Browse files
generatedunixname1030151775592158facebook-github-bot
generatedunixname1030151775592158
authored andcommittedMar 14, 2025·
ThriftRemoveGetters_fboss/platform/platform_manager
Reviewed By: dtolnay Differential Revision: D71207094 fbshipit-source-id: 9c40a9a4b061dd1c24b3225789369ebf033e59ca
1 parent 13fda3b commit 01758db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎fboss/platform/platform_manager/I2cExplorer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ void I2cExplorer::setupI2cDevice(
122122
size,
123123
*regInfo.regOffset());
124124
const uint8_t* buf = (const uint8_t*)regInfo.ioBuf()->data();
125-
i2cIoHandle->write(addr.raw(), regInfo.get_regOffset(), buf, size);
125+
i2cIoHandle->write(
126+
addr.raw(), folly::copy(regInfo.regOffset().value()), buf, size);
126127
}
127128
}
128129

0 commit comments

Comments
 (0)
Please sign in to comment.