Skip to content

Commit

Permalink
Remove redundant and fail-prone serializer calls to set i2c rate in C…
Browse files Browse the repository at this point in the history
…onfigureDeserializer
  • Loading branch information
aacuevas committed Oct 14, 2024
1 parent fcf84e7 commit 786d3bd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions OpenEphys.Onix1/ConfigureUclaMiniscopeV4Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,6 @@ internal static void ConfigureDeserializer(DeviceContext device)
i2cAlias = UclaMiniscopeV4.Max14574Address << 1;
deserializer.WriteByte((uint)DS90UB9xDeserializerI2CRegister.SlaveID3, i2cAlias);
deserializer.WriteByte((uint)DS90UB9xDeserializerI2CRegister.SlaveAlias3, i2cAlias);

// set I2C clock rate to ~100 kHz
var serializer = new I2CRegisterContext(device, DS90UB9x.SER_ADDR);
serializer.WriteByte((uint)0x11, 0x7A);
serializer.WriteByte((uint)0x12, 0x7A);
}

internal static void ConfigureSerializer(DeviceContext device)
Expand Down

0 comments on commit 786d3bd

Please sign in to comment.