mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 16:34:56 +01:00
parent
30477c764d
commit
8f69d07061
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ bool HX711Sensor::read_sensor_(uint32_t *result) {
|
|||
}
|
||||
|
||||
// Cycle clock pin for gain setting
|
||||
for (uint8_t i = 0; i < this->gain_; i++) {
|
||||
for (uint8_t i = 0; i < static_cast<uint8_t>(this->gain_); i++) {
|
||||
this->sck_pin_->digital_write(true);
|
||||
delayMicroseconds(1);
|
||||
this->sck_pin_->digital_write(false);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
namespace esphome {
|
||||
namespace hx711 {
|
||||
|
||||
enum HX711Gain {
|
||||
enum HX711Gain : uint8_t {
|
||||
HX711_GAIN_128 = 1,
|
||||
HX711_GAIN_32 = 2,
|
||||
HX711_GAIN_64 = 3,
|
||||
|
|
Loading…
Reference in a new issue