Skip to content

Commit 61f25c8

Browse files
committed
fix: missing diffbot namespace in test
1 parent 54e130b commit 61f25c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

diffbot_base/scripts/base_controller/test/motor_controller/test_adafruit_motor_controller.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
* Author: Franz Pucher
33
*/
44

5+
// Include unity library
6+
// For details see https://docs.platformio.org/en/latest/plus/unit-testing.html#api
57
#include <unity.h>
68

79
#include <adafruit_feather_wing/adafruit_feather_wing.h>
810

11+
using namespace diffbot;
912

10-
AdafruitMotorController AMD = AdafruitMotorController(3);
11-
MotorControllerIntf<Adafruit_MotorShield>* pMotorController = &AMD;
13+
AdafruitMotorController AMC = AdafruitMotorController(3);
14+
MotorControllerIntf<Adafruit_MotorShield>* pMotorController = &AMC;
1215

1316

1417
void motorSweep(MotorControllerIntf<Adafruit_MotorShield>* i_pMotorController)
@@ -49,7 +52,7 @@ void setup() {
4952
Serial.begin(9600); // set up Serial library at 9600 bps
5053
Serial.println("AdafruitMotorController Test");
5154

52-
AMD.begin(); // create with the default frequency 1.6KHz
55+
AMC.begin(); // create with the default frequency 1.6KHz
5356
//AFMS.begin(1000); // OR with a different frequency, say 1KHz
5457
}
5558

0 commit comments

Comments
 (0)