From 807c668489a599ce5969efc65b38145184651e34 Mon Sep 17 00:00:00 2001 From: DigiH Date: Mon, 12 Dec 2022 22:58:51 +0100 Subject: [PATCH] Small typo fixes (#1359) A few small typo fixes --- main/config_ADC.h | 2 +- main/config_BME280.h | 2 +- main/config_DS1820.h | 2 +- main/config_FASTLED.h | 2 +- main/config_HELTEC.h | 2 +- main/config_IR.h | 2 +- main/config_LORA.h | 2 +- main/config_ONOFF.h | 2 +- main/config_RF.h | 2 +- main/config_SRFB.h | 6 +++--- main/config_mqttDiscovery.h | 6 +++--- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/main/config_ADC.h b/main/config_ADC.h index b7fe80f..cac56ed 100644 --- a/main/config_ADC.h +++ b/main/config_ADC.h @@ -45,7 +45,7 @@ extern void ADCtoMQTT(); #endif #ifndef MinTimeInSecBetweenPublishingADC -# define MinTimeInSecBetweenPublishingADC 0 // pub at least at defined interval - usefull to publish values in case they do not change so much ; 0 = disabled +# define MinTimeInSecBetweenPublishingADC 0 // pub at least at defined interval - useful to publish values in case they do not change so much ; 0 = disabled #endif /*-------------------PIN DEFINITIONS----------------------*/ diff --git a/main/config_BME280.h b/main/config_BME280.h index 7be5853..24df8eb 100644 --- a/main/config_BME280.h +++ b/main/config_BME280.h @@ -90,7 +90,7 @@ int BME280_PIN_SCL = SCL; // PIN SCL // Temperature correction for BME280/BMP280 devices #ifndef BME280Correction -// BME280Correction - Correction in celcius of temperature reported by BME280/BMP280 sensor. Both Celcius and Farenheit temperatures are adjusted. +// BME280Correction - Correction in Celsius of temperature reported by BME280/BMP280 sensor. Both Celsius and Fahrenheit temperatures are adjusted. // ------------------------- // Value is a float // ie Compiler Directive '-DBME280Correction=-3.4' diff --git a/main/config_DS1820.h b/main/config_DS1820.h index 399c55c..b40ba35 100644 --- a/main/config_DS1820.h +++ b/main/config_DS1820.h @@ -36,7 +36,7 @@ extern void pubOneWire_HADiscovery(); #define DS1820_ALWAYS true // if false only published current temperature if has changed from previous reading #define DS1820_INTERVAL_SEC 60UL // time between DS1820 readings (seconds) #define DS1820_RESOLUTION 10 // conversion times: 9 bit (93.75 ms), 10 bit (187.5 ms), 11 bit (375 ms), 12 bit (750 ms) -#define DS1820_DETAILS true // publish extented info for each sensor (resolution, address, type) +#define DS1820_DETAILS true // publish extended info for each sensor (resolution, address, type) #define DS1820_CONV_TIME 2000UL // trigger conversion before requesting temperature readings (ms) /*-------------------PIN DEFINITIONS----------------------*/ diff --git a/main/config_FASTLED.h b/main/config_FASTLED.h index 8e585f9..fa22e78 100644 --- a/main/config_FASTLED.h +++ b/main/config_FASTLED.h @@ -35,7 +35,7 @@ // How many leds in your strip? #define FASTLED_NUM_LEDS 16 -// Uncomment/edit one of the following lines for your leds arrangement. +// Uncomment/edit one of the following lines for your LEDs arrangement. //#define FASTLED_TYPE TM1803 //#define FASTLED_TYPE TM1804 diff --git a/main/config_HELTEC.h b/main/config_HELTEC.h index 1bb0b87..e1be1e0 100644 --- a/main/config_HELTEC.h +++ b/main/config_HELTEC.h @@ -87,7 +87,7 @@ public: void fillScreen(OLEDDISPLAY_COLOR); // fillScreen display and set color - // This is a bit of lazy programmer simplifacation for the semapore and core detecting code. Not sure if it is truly space efficient. + // This is a bit of lazy programmer simplification for the semaphore and core detecting code. Not sure if it is truly space efficient. inline size_t write(uint8_t x) { return write(&x, 1); diff --git a/main/config_IR.h b/main/config_IR.h index d5e9f28..f646c2c 100644 --- a/main/config_IR.h +++ b/main/config_IR.h @@ -185,7 +185,7 @@ extern void MQTTtoIR(char* topicOri, JsonObject& RFdata); #ifndef IR_EMITTER_INVERTED # if defined(ESP8266) || defined(ESP32) -# define IR_EMITTER_INVERTED false //set to true if yuou want to reverse the LED signal for the emitter +# define IR_EMITTER_INVERTED false //set to true if you want to reverse the LED signal for the emitter # endif #endif diff --git a/main/config_LORA.h b/main/config_LORA.h index 3fcfdd1..cb43356 100644 --- a/main/config_LORA.h +++ b/main/config_LORA.h @@ -47,7 +47,7 @@ extern void MQTTtoLORA(char* topicOri, JsonObject& RFdata); #define LORA_SYNC_WORD 0x12 #define DEFAULT_CRC true -#define repeatLORAwMQTT false // do we repeat a received signal by using mqtt with LORA gateway +#define repeatLORAwMQTT false // do we repeat a received signal by using MQTT with LORA gateway /*-------------------PIN DEFINITIONS----------------------*/ //TTGO LORA BOARD ESP32 PIN DEFINITION diff --git a/main/config_ONOFF.h b/main/config_ONOFF.h index c5e66cc..854a1e8 100644 --- a/main/config_ONOFF.h +++ b/main/config_ONOFF.h @@ -37,7 +37,7 @@ extern void MQTTtoONOFF(char* topicOri, JsonObject& RFdata); #define ONKey "setON" #define OFFKey "setOFF" #ifndef ACTUATOR_ON -# define ACTUATOR_ON LOW // LOW or HIGH, set to the output level of the gpio pin to turn the actuator on. +# define ACTUATOR_ON LOW // LOW or HIGH, set to the output level of the GPIO pin to turn the actuator on. #endif //# define ACTUATOR_ONOFF_DEFAULT !ACTUATOR_ON // ACTUATOR_ON or !ACTUATOR_ON, set to the state desired on reset. #ifndef ACTUATOR_BUTTON_TRIGGER_LEVEL diff --git a/main/config_RF.h b/main/config_RF.h index 815329c..a6c57a8 100644 --- a/main/config_RF.h +++ b/main/config_RF.h @@ -74,7 +74,7 @@ extern int getRTLMessageCount(); #define subjectGTWRFtoMQTT "/433toMQTT" #define RFprotocolKey "433_" // protocol will be defined if a subject contains RFprotocolKey followed by a value of 1 digit #define RFbitsKey "RFBITS_" // bits will be defined if a subject contains RFbitsKey followed by a value of 2 digits -#define repeatRFwMQTT false // do we repeat a received signal by using mqtt with RF gateway +#define repeatRFwMQTT false // do we repeat a received signal by using MQTT with RF gateway #define RFpulselengthKey "PLSL_" // pulselength will be defined if a subject contains RFprotocolKey followed by a value of 3 digits // subject monitored to listen traffic processed by other gateways to store data and avoid ntuple #define subjectMultiGTWRF "+/+/433toMQTT" diff --git a/main/config_SRFB.h b/main/config_SRFB.h index a43217a..c617389 100644 --- a/main/config_SRFB.h +++ b/main/config_SRFB.h @@ -42,15 +42,15 @@ extern void MQTTtoSRFB(char* topicOri, JsonObject& RFdata); #define SRFBminipulselengthKey "Tlow_" #define SRFBsyncKey "Tsyn_" -#define repeatSRFBwMQTT false // do we repeat a received signal by using mqtt with Sonoff RF Bridge +#define repeatSRFBwMQTT false // do we repeat a received signal by using MQTT with Sonoff RF Bridge // ----------------------------------------------------------------------------- // RFBRIDGE // ----------------------------------------------------------------------------- #define RF_SEND_TIMES 4 // How many times to send the message -#define RF_SEND_DELAY 500 // Interval between sendings in ms -#define RF_RECEIVE_DELAY 500 // Interval between recieving in ms (avoid debouncing) +#define RF_SEND_DELAY 500 // Interval between sending in ms +#define RF_RECEIVE_DELAY 500 // Interval between receiving in ms (avoid debouncing) // ----------------------------------------------------------------------------- // DEFINITIONS diff --git a/main/config_mqttDiscovery.h b/main/config_mqttDiscovery.h index d904780..b1cf5f6 100644 --- a/main/config_mqttDiscovery.h +++ b/main/config_mqttDiscovery.h @@ -61,7 +61,7 @@ extern void createDiscoveryFromList(const char* mac, * @param sensor_type the Type * @param st_topic set state topic, * @param s_name set name, - * @param unique_id set niqueId + * @param unique_id set uniqueId * @param availability_topic set availability_topic, * @param device_class set device_class, * @param value_template set value_template, @@ -69,8 +69,8 @@ extern void createDiscoveryFromList(const char* mac, * @param payload_off set payload_off, * @param unit_of_meas set unit_of_meas, * @param off_delay set off_delay - * @param payload_available set payload_avalaible, - * @param payload_not_avalaible set payload_not_avalaible + * @param payload_available set payload_available, + * @param payload_not_available set payload_not_available * @param gateway_entity set is a gateway entity, * @param cmd_topic set command topic * @param device_name set device name,