some minor correction after codacy checks (#82)
need to merge it before RFM69 pull request
This commit is contained in:
1 parent
b0907acc6c
commit
96167743c0
3 files changed
+2
-3
No files matched your search
+1
-1
@@ -158,7 +158,6 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
|
|||||||
|
|
||||||
//We look into the subject to see if a special Bits number is defined
|
//We look into the subject to see if a special Bits number is defined
|
||||||
String topic = topicOri;
|
String topic = topicOri;
|
||||||
int valueRPT = 0;
|
|
||||||
unsigned int valueBITS = 0;
|
unsigned int valueBITS = 0;
|
||||||
int pos = topic.lastIndexOf(IRbitsKey);
|
int pos = topic.lastIndexOf(IRbitsKey);
|
||||||
if (pos != -1){
|
if (pos != -1){
|
||||||
@@ -168,6 +167,7 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
|
|||||||
trc(String(valueBITS));
|
trc(String(valueBITS));
|
||||||
}
|
}
|
||||||
//We look into the subject to see if a special repeat number is defined
|
//We look into the subject to see if a special repeat number is defined
|
||||||
|
int valueRPT = 0;
|
||||||
int pos2 = topic.lastIndexOf(IRRptKey);
|
int pos2 = topic.lastIndexOf(IRRptKey);
|
||||||
if (pos2 != -1) {
|
if (pos2 != -1) {
|
||||||
pos2 = pos2 + strlen(IRRptKey);
|
pos2 = pos2 + strlen(IRRptKey);
|
||||||
|
|||||||
+1
-1
@@ -110,7 +110,7 @@ void MeasureLightIntensity()
|
|||||||
// Generate Lux
|
// Generate Lux
|
||||||
if(Lux != persistedll || bh1750_always){
|
if(Lux != persistedll || bh1750_always){
|
||||||
char lux[7];
|
char lux[7];
|
||||||
sprintf(lux,"%d",Lux);
|
sprintf(lux,"%u",Lux);
|
||||||
trc(F("Sending Lux to MQTT"));
|
trc(F("Sending Lux to MQTT"));
|
||||||
trc(String(lux));
|
trc(String(lux));
|
||||||
client.publish(LUX,lux);
|
client.publish(LUX,lux);
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ void MeasureTempHumAndPressure()
|
|||||||
|
|
||||||
if (millis() > (timebme280 + TimeBetweenReadingbme280)) {
|
if (millis() > (timebme280 + TimeBetweenReadingbme280)) {
|
||||||
timebme280 = millis();
|
timebme280 = millis();
|
||||||
unsigned int i=0;
|
|
||||||
static float persisted_bme_tempc;
|
static float persisted_bme_tempc;
|
||||||
static float persisted_bme_tempf;
|
static float persisted_bme_tempf;
|
||||||
static float persisted_bme_hum;
|
static float persisted_bme_hum;
|
||||||
|
|||||||
Reference in new issue
Block a user