mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
[kp18058] remove minor compilation warnings / errors
This commit is contained in:
parent
8a031ebec3
commit
4f9436208d
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class kp18058_output : public output::FloatOutput {
|
||||||
* Constructor for the kp18058_output class.
|
* Constructor for the kp18058_output class.
|
||||||
* Initializes the channel with default values.
|
* Initializes the channel with default values.
|
||||||
*/
|
*/
|
||||||
kp18058_output() : parent_(nullptr), value_(0) {}
|
kp18058_output() : value_(0), parent_(nullptr) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the parent kp18058 driver instance for this output channel.
|
* Sets the parent kp18058 driver instance for this output channel.
|
||||||
|
|
|
@ -8,7 +8,7 @@ static const uint8_t SOFT_I2C_CLOCK_TIME = 50;
|
||||||
|
|
||||||
void ns_sleep(int ns_delay) {
|
void ns_sleep(int ns_delay) {
|
||||||
// Create a delay by executing NOP instructions in a loop.
|
// Create a delay by executing NOP instructions in a loop.
|
||||||
for (volatile int i = 0; i < ns_delay; i++)
|
for (volatile int i = 0; i < ns_delay; i += 1)
|
||||||
__asm__("nop");
|
__asm__("nop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue