Skip to content

Commit

Permalink
- Minor variable name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnew committed Oct 15, 2024
1 parent 93bd98d commit a9e386f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions OpenEphys.Onix1/DS90UB9x.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ static class DS90UB9x
internal static void Set933I2CRate(DeviceContext device, double i2cRate)
{
var serializer = new I2CRegisterContext(device, SER_ADDR);
double SCLtimes = (1.0 / (100e-9 * i2cRate));
uint SCLvalir = (uint)Math.Round(SCLtimes);
serializer.WriteByte((uint)DS90UB933SerializerI2CRegister.SclHigh, SCLvalir);
serializer.WriteByte((uint)DS90UB933SerializerI2CRegister.SclLow, SCLvalir);
var sclTimes = (uint)Math.Round(1.0 / (100e-9 * i2cRate));
serializer.WriteByte((uint)DS90UB933SerializerI2CRegister.SclHigh, sclTimes);
serializer.WriteByte((uint)DS90UB933SerializerI2CRegister.SclLow, sclTimes);
}
}

Expand Down

0 comments on commit a9e386f

Please sign in to comment.