From f61e65ed80e2120010445dae708eed01c1336f85 Mon Sep 17 00:00:00 2001 From: shrkey Date: Sun, 9 Oct 2016 20:15:45 +0100 Subject: [PATCH] bool return --- darkwater/DW640.cpp | 2 +- darkwater/DW640.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/darkwater/DW640.cpp b/darkwater/DW640.cpp index a6cf62e..9585ea8 100644 --- a/darkwater/DW640.cpp +++ b/darkwater/DW640.cpp @@ -42,7 +42,7 @@ DW640::DW640(uint8_t address) { * Then it enables auto-increment of register address to allow for faster writes. * And finally the restart is performed to enable clocking. */ -void DW640::initialize() { +bool DW640::initialize() { this->pwm = new PCA9685( this->devAddr ); if (!testConnection() ) { printf("No 640 board found\n"); diff --git a/darkwater/DW640.h b/darkwater/DW640.h index 02f30ba..633c34e 100644 --- a/darkwater/DW640.h +++ b/darkwater/DW640.h @@ -60,7 +60,7 @@ class DW640 { public: DW640(uint8_t address = DW640_DEFAULT_ADDRESS); - void initialize(); + bool initialize(); bool testConnection(); // float getFrequency();