Skip to content

Commit

Permalink
Remove initializer lists due the following error.
Browse files Browse the repository at this point in the history
error: non-aggregate type 'Sample3D' cannot be initialized with an initializer list.
  • Loading branch information
GeorgeWort committed Jul 5, 2019
1 parent f2baf1e commit 5b015a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/drivers/MicroBitCompassCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ CompassCalibration MicroBitCompassCalibrator::spherify(Sample3D centre, Sample3D
Sample3D MicroBitCompassCalibrator::approximateCentre(Sample3D *data, int samples)
{
Sample3D c,t;
Sample3D centre = { 0,0,0 };
Sample3D best = { 0,0,0 };
Sample3D centre;
Sample3D best;

float score;

Expand Down

0 comments on commit 5b015a3

Please sign in to comment.