Skip to content

Commit d43303c

Browse files
aacuevasjonnew
authored andcommitted
Update comments to follow project style
1 parent bcc19de commit d43303c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenEphys.Onix1/PolledBno055Data.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public unsafe IObservable<Bno055DataFrame> Generate<TSource>(IObservable<TSource
115115
registeredValues.Add(deviceName);
116116
}
117117

118-
// Preallocate the array to avoid unnecesary allocation each frame
118+
// NB: Preallocate the array to avoid unnecesary allocation each frame
119119
byte[] data = new byte[28];
120120
var s = source.SubscribeSafe(observer, _ =>
121121
{
@@ -162,7 +162,7 @@ public unsafe IObservable<Bno055DataFrame> Generate<TSource>(IObservable<TSource
162162
Array.Clear(data, 0, 6);
163163
}
164164

165-
//NOTE: actual performance would be a little better if we merged these two so they could be read together
165+
//TODO: actual performance would be a little better if we merged these two so they could be read together
166166
data[26] = polled.HasFlag(PolledBno055Registers.Temperature) ? i2c.ReadByte(PolledBno055.EulerHeadingLsbAddress + 26) : (byte)0;
167167
data[27] = polled.HasFlag(PolledBno055Registers.Calibration) ? i2c.ReadByte(PolledBno055.EulerHeadingLsbAddress + 27) : (byte)0;
168168

0 commit comments

Comments
 (0)