From 1f2a079b246802b1eb044b5d890f9d8a9ce82f02 Mon Sep 17 00:00:00 2001 From: shrkey Date: Sun, 9 Oct 2016 20:52:41 +0100 Subject: [PATCH] namespace --- darkwater/DW640.cpp | 2 +- examples/Servo/Servo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/darkwater/DW640.cpp b/darkwater/DW640.cpp index 294de3d..f6ff860 100644 --- a/darkwater/DW640.cpp +++ b/darkwater/DW640.cpp @@ -90,6 +90,6 @@ uint8_t DW640::getMode() { */ void DW640::setMode(uint8_t mode) { this->modePin = new Pin( RPI_GPIO_27 ); - this->modePin->setMode(Pin::GpioModeOutput); + this->modePin->setMode(this->modePin->GpioModeOutput); this->modePin->write( mode ); } \ No newline at end of file diff --git a/examples/Servo/Servo.cpp b/examples/Servo/Servo.cpp index 6aec66b..247f60f 100644 --- a/examples/Servo/Servo.cpp +++ b/examples/Servo/Servo.cpp @@ -21,7 +21,7 @@ make #include "darkwater/PCA9685.h" #include "darkwater/Util.h" -using namespace Navio; +using namespace DarkWater; int main() {