mirror of
https://github.com/esphome/esphome.git
synced 2025-03-23 02:58:13 +00:00
parent
30477c764d
commit
8f69d07061
@ -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…
x
Reference in New Issue
Block a user