Update gp8211.cpp

This commit is contained in:
haudamekki 2024-10-31 09:08:42 +01:00 committed by GitHub
parent f8be4b39e1
commit 5724a7a173
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ static const char *const TAG = "gp8211";
static const uint8_t RANGE_REGISTER = 0x01;
void GP8211::setup() {
this->write_register(RANGE_REGISTER, reinterpret_cast<uint8_t*>(&this->voltage_), sizeof(this->voltage_));
this->write_register(RANGE_REGISTER, reinterpret_cast<uint8_t *>(&this->voltage_), sizeof(this->voltage_));
}
void GP8211::dump_config() {