bool return

This commit is contained in:
shrkey
2016-10-09 20:15:45 +01:00
parent debb69a636
commit f61e65ed80
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ DW640::DW640(uint8_t address) {
* Then it enables auto-increment of register address to allow for faster writes. * Then it enables auto-increment of register address to allow for faster writes.
* And finally the restart is performed to enable clocking. * And finally the restart is performed to enable clocking.
*/ */
void DW640::initialize() { bool DW640::initialize() {
this->pwm = new PCA9685( this->devAddr ); this->pwm = new PCA9685( this->devAddr );
if (!testConnection() ) { if (!testConnection() ) {
printf("No 640 board found\n"); printf("No 640 board found\n");

View File

@@ -60,7 +60,7 @@ class DW640 {
public: public:
DW640(uint8_t address = DW640_DEFAULT_ADDRESS); DW640(uint8_t address = DW640_DEFAULT_ADDRESS);
void initialize(); bool initialize();
bool testConnection(); bool testConnection();
// float getFrequency(); // float getFrequency();