[kp18058] remove minor compilation warnings / errors

This commit is contained in:
NewoPL 2024-10-30 23:22:36 +01:00
parent 8a031ebec3
commit 4f9436208d
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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");
} }