File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments