mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
outline corrections of // comments
This commit is contained in:
parent
e8a56755d9
commit
41e6939a81
@ -133,8 +133,8 @@ void Veml6070Detect(void)
|
|||||||
// action on status
|
// action on status
|
||||||
if (!status) {
|
if (!status) {
|
||||||
veml6070_type = 1;
|
veml6070_type = 1;
|
||||||
uint8_t veml_model = 0;
|
uint8_t veml_model = 0;
|
||||||
GetTextIndexed(veml6070_name, sizeof(veml6070_name), veml_model, kVemlTypes);
|
GetTextIndexed(veml6070_name, sizeof(veml6070_name), veml_model, kVemlTypes);
|
||||||
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, "VEML6070", VEML6070_ADDR_L);
|
snprintf_P(log_data, sizeof(log_data), S_LOG_I2C_FOUND_AT, "VEML6070", VEML6070_ADDR_L);
|
||||||
AddLog(LOG_LEVEL_DEBUG);
|
AddLog(LOG_LEVEL_DEBUG);
|
||||||
}
|
}
|
||||||
@ -168,13 +168,13 @@ void Veml6070EverySecond(void)
|
|||||||
{
|
{
|
||||||
// all = 10..15[ms]
|
// all = 10..15[ms]
|
||||||
if (11 == (uptime %100)) {
|
if (11 == (uptime %100)) {
|
||||||
Veml6070ModeCmd(1); // on = 1[ms], wakeup the UV sensor
|
Veml6070ModeCmd(1); // on = 1[ms], wakeup the UV sensor
|
||||||
Veml6070Detect(); // 1[ms], check for sensor and init with IT time
|
Veml6070Detect(); // 1[ms], check for sensor and init with IT time
|
||||||
Veml6070ModeCmd(0); // off = 5[ms], suspend the UV sensor
|
Veml6070ModeCmd(0); // off = 5[ms], suspend the UV sensor
|
||||||
} else {
|
} else {
|
||||||
Veml6070ModeCmd(1); // 1[ms], wakeup the UV sensor
|
Veml6070ModeCmd(1); // 1[ms], wakeup the UV sensor
|
||||||
uvlevel = Veml6070ReadUv(); // 1..2[ms], get UV raw values
|
uvlevel = Veml6070ReadUv(); // 1..2[ms], get UV raw values
|
||||||
uvrisk = Veml6070UvRiskLevel(uvlevel); // 0..1[ms], get UV risk level
|
uvrisk = Veml6070UvRiskLevel(uvlevel); // 0..1[ms], get UV risk level
|
||||||
uvpower = Veml6070UvPower(uvrisk); // 2[ms], get UV power in W/m2
|
uvpower = Veml6070UvPower(uvrisk); // 2[ms], get UV power in W/m2
|
||||||
Veml6070ModeCmd(0); // off = 5[ms], suspend the UV sensor
|
Veml6070ModeCmd(0); // off = 5[ms], suspend the UV sensor
|
||||||
}
|
}
|
||||||
@ -312,9 +312,9 @@ boolean Xsns11(byte function)
|
|||||||
switch (function) {
|
switch (function) {
|
||||||
case FUNC_INIT:
|
case FUNC_INIT:
|
||||||
Veml6070Detect(); // 1[ms], detect and init the sensor
|
Veml6070Detect(); // 1[ms], detect and init the sensor
|
||||||
Veml6070UvTableInit(); // 1[ms], initalize the UV compare table only once
|
Veml6070UvTableInit(); // 1[ms], initalize the UV compare table only once
|
||||||
break;
|
break;
|
||||||
case FUNC_EVERY_SECOND:
|
case FUNC_EVERY_SECOND:
|
||||||
Veml6070EverySecond(); // 10..15[ms], tested with OLED display, do all the actions needed to get all sensor values
|
Veml6070EverySecond(); // 10..15[ms], tested with OLED display, do all the actions needed to get all sensor values
|
||||||
break;
|
break;
|
||||||
case FUNC_JSON_APPEND:
|
case FUNC_JSON_APPEND:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user