Skip to content

Commit 08a5f0a

Browse files
committed
Minor syntactic fixes to oc_client.
1 parent 58e3c7e commit 08a5f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/oculus_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ void signalHandler(int signo) {
4545
}
4646

4747
double mean_image_intensity( const liboculus::ImageData &imageData ) {
48-
double f;
48+
double f=0;
4949
for ( int r = 0; r < imageData.nRanges(); ++r ) {
5050
for ( int a = 0; a < imageData.nBeams(); ++a ) {
51-
f += imageData.at_uint32(a,r);
51+
f += imageData.at_uint32(a, r);
5252
}
5353
}
5454
f /= (imageData.nRanges() * imageData.nBeams());

0 commit comments

Comments
 (0)