Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
leon0399 committed Mar 30, 2023
2 parents 4734fc9 + cdddda1 commit c17c70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pca9685/output_writers/pca9685.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "output_writers/pca9685.hpp"

void OH::PCA9685OutputWriter::writeOutput(oh_output_intensity_t intensity) {
this->driver->setPin(this->num, (uint16_t)map(intensity, 0, UINT16_MAX, 0, 4095));
this->driver->setPin(this->num, (uint16_t)map(intensity, 0, OH_OUTPUT_INTENSITY_MAX, 0, 4095));
}

0 comments on commit c17c70e

Please sign in to comment.