@@ -447,7 +447,9 @@ class drvBase {
447
447
@returns True if the sensor value was obtained successfully, False
448
448
otherwise.
449
449
*/
450
- virtual bool getEventMagneticField (sensors_event_t *magneticEvent) { return false ; }
450
+ virtual bool getEventMagneticField (sensors_event_t *magneticEvent) {
451
+ return false ;
452
+ }
451
453
452
454
/* !
453
455
@brief Gets a sensor's gravity vector value.
@@ -465,7 +467,9 @@ class drvBase {
465
467
@returns True if the sensor value was obtained successfully, False
466
468
otherwise.
467
469
*/
468
- virtual bool getEventLinearAcceleration (sensors_event_t *linearAccelEvent) { return false ; }
470
+ virtual bool getEventLinearAcceleration (sensors_event_t *linearAccelEvent) {
471
+ return false ;
472
+ }
469
473
470
474
/* !
471
475
@brief Gets a sensor's rotation vector value.
@@ -474,7 +478,9 @@ class drvBase {
474
478
@returns True if the sensor value was obtained successfully, False
475
479
otherwise.
476
480
*/
477
- virtual bool getEventRotationVector (sensors_event_t *rotationEvent) { return false ; }
481
+ virtual bool getEventRotationVector (sensors_event_t *rotationEvent) {
482
+ return false ;
483
+ }
478
484
479
485
/* !
480
486
@brief Gets a sensor's gyroscope value.
@@ -491,7 +497,9 @@ class drvBase {
491
497
@returns True if the sensor value was obtained successfully, False
492
498
otherwise.
493
499
*/
494
- virtual bool getEventAccelerometer (sensors_event_t *accelEvent) { return false ; }
500
+ virtual bool getEventAccelerometer (sensors_event_t *accelEvent) {
501
+ return false ;
502
+ }
495
503
496
504
/* !
497
505
@brief Gets a sensor's orientation value.
@@ -500,7 +508,9 @@ class drvBase {
500
508
@returns True if the sensor value was obtained successfully, False
501
509
otherwise.
502
510
*/
503
- virtual bool getEventOrientation (sensors_event_t *orientationEvent) { return false ; }
511
+ virtual bool getEventOrientation (sensors_event_t *orientationEvent) {
512
+ return false ;
513
+ }
504
514
505
515
/* !
506
516
@brief Gets a sensor's rotation vector value.
@@ -509,7 +519,9 @@ class drvBase {
509
519
@returns True if the sensor value was obtained successfully, False
510
520
otherwise.
511
521
*/
512
- virtual bool getEventRotationVector (sensors_event_t *rotationEvent) { return false ; }
522
+ virtual bool getEventRotationVector (sensors_event_t *rotationEvent) {
523
+ return false ;
524
+ }
513
525
514
526
/* !
515
527
@brief Gets a sensor's Raw value.
@@ -764,8 +776,7 @@ class drvBase {
764
776
{wippersnapper_sensor_SensorType_SENSOR_TYPE_ROTATION_VECTOR,
765
777
[this ](sensors_event_t *event) -> bool {
766
778
return this ->getEventRotationVector (event);
767
- }}
768
- }; // /< SensorType to function call map
779
+ }}}; // /< SensorType to function call map
769
780
770
781
wippersnapper_sensor_SensorType
771
782
_sensors[15 ]; // /< Sensors attached to the device.
0 commit comments