mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Merge pull request #3852 from andrethomas/development
LM75AD - Force function parameters to be C and C++ compliant
This commit is contained in:
commit
3474ccae74
@ -46,7 +46,7 @@ uint8_t lm75ad_type = 0;
|
|||||||
uint8_t lm75ad_address;
|
uint8_t lm75ad_address;
|
||||||
uint8_t lm75ad_addresses[] = { LM75AD_ADDRESS1, LM75AD_ADDRESS2, LM75AD_ADDRESS3, LM75AD_ADDRESS4, LM75AD_ADDRESS5, LM75AD_ADDRESS6, LM75AD_ADDRESS7, LM75AD_ADDRESS8 };
|
uint8_t lm75ad_addresses[] = { LM75AD_ADDRESS1, LM75AD_ADDRESS2, LM75AD_ADDRESS3, LM75AD_ADDRESS4, LM75AD_ADDRESS5, LM75AD_ADDRESS6, LM75AD_ADDRESS7, LM75AD_ADDRESS8 };
|
||||||
|
|
||||||
void LM75ADDetect()
|
void LM75ADDetect(void)
|
||||||
{
|
{
|
||||||
if (lm75ad_type) { return; }
|
if (lm75ad_type) { return; }
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ void LM75ADDetect()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float LM75ADGetTemp() {
|
float LM75ADGetTemp(void) {
|
||||||
int16_t sign = 1;
|
int16_t sign = 1;
|
||||||
|
|
||||||
uint16_t t = I2cRead16(lm75ad_address, LM75_TEMP_REGISTER);
|
uint16_t t = I2cRead16(lm75ad_address, LM75_TEMP_REGISTER);
|
||||||
|
@ -181,7 +181,7 @@ void MCP230xx_ApplySettings(void) {
|
|||||||
MCP230xx_CheckForIntCounter(); // update register on whether or not we should be counting interrupts
|
MCP230xx_CheckForIntCounter(); // update register on whether or not we should be counting interrupts
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCP230xx_Detect()
|
void MCP230xx_Detect(void)
|
||||||
{
|
{
|
||||||
if (mcp230xx_type) {
|
if (mcp230xx_type) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user