Skip to content

Commit 642733e

Browse files
committed
GPS - Update for PB
1 parent 9233d2e commit 642733e

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

src/components/i2c/controller.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,9 @@ bool I2cController::Handle_I2cDeviceAddOrReplace(pb_istream_t *stream) {
880880
// Is this an i2c output device?
881881
bool is_output = _i2c_model->GetI2cDeviceAddOrReplaceMsg()->is_output;
882882

883+
// Is this a i2c GPS?
884+
bool is_gps = _i2c_model->GetI2cDeviceAddOrReplaceMsg()->has_gps_config;
885+
883886
// TODO [Online]: Handle Replace messages by implementing the Remove handler
884887
// first...then proceed to adding a new device
885888

0 commit comments

Comments
 (0)