mirror of https://github.com/arendst/Tasmota.git
Minor fixes
This commit is contained in:
parent
9549ab3ad3
commit
2daba99e33
|
@ -76,7 +76,7 @@ The following devices are supported:
|
||||||
You can contribute to Sonoff-Tasmota by
|
You can contribute to Sonoff-Tasmota by
|
||||||
- providing Pull Requests (Features, Proof of Concepts, Language files or Fixes)
|
- providing Pull Requests (Features, Proof of Concepts, Language files or Fixes)
|
||||||
- testing new released features and report issues
|
- testing new released features and report issues
|
||||||
- donating to acquire hardware for testing and implementating or out of gratitude
|
- donating to acquire hardware for testing and implementing or out of gratitude
|
||||||
|
|
||||||
[![donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://paypal.me/tasmota)
|
[![donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://paypal.me/tasmota)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
cs-CZ.h - localization for Czech with diacritics - Czech for Sonoff-Tasmota
|
cs-CZ.h - localization for Czech with diacritics - Czech for Sonoff-Tasmota
|
||||||
|
|
||||||
Copyright (C) 2018 Vladimír Synekl
|
Copyright (C) 2018 Vladimír Synek
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -368,7 +368,7 @@
|
||||||
// xdrv_09_timers.ino
|
// xdrv_09_timers.ino
|
||||||
#define D_CONFIGURE_TIMER "Nastavení Časovače"
|
#define D_CONFIGURE_TIMER "Nastavení Časovače"
|
||||||
#define D_TIMER_PARAMETERS "Časovač"
|
#define D_TIMER_PARAMETERS "Časovač"
|
||||||
#define D_TIMER_ARM "Zajistit"
|
#define D_TIMER_ARM "Aktivní"
|
||||||
#define D_TIMER_TIME "Čas"
|
#define D_TIMER_TIME "Čas"
|
||||||
#define D_TIMER_DAYS "Dny"
|
#define D_TIMER_DAYS "Dny"
|
||||||
#define D_TIMER_REPEAT "Opakovat"
|
#define D_TIMER_REPEAT "Opakovat"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
* - https://www.dfrobot.com/wiki/index.php/Weather-proof_Ultrasonic_Sensor_SKU_:_SEN0207
|
* - https://www.dfrobot.com/wiki/index.php/Weather-proof_Ultrasonic_Sensor_SKU_:_SEN0207
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
#define max(a,b) ((a)>(b)?(a):(b))
|
#define max(a,b) ((a)>(b)?(a):(b))
|
||||||
|
#define min(a,b) ((a)<(b)?(a):(b))
|
||||||
|
|
||||||
uint8_t sr04_echo_pin = 0;
|
uint8_t sr04_echo_pin = 0;
|
||||||
uint8_t sr04_trig_pin = 0;
|
uint8_t sr04_trig_pin = 0;
|
||||||
|
@ -71,7 +72,7 @@ boolean Sr04Read(uint16_t *distance)
|
||||||
uint16_t Sr04Ping(uint16_t max_cm_distance)
|
uint16_t Sr04Ping(uint16_t max_cm_distance)
|
||||||
{
|
{
|
||||||
uint16_t duration = 0;
|
uint16_t duration = 0;
|
||||||
uint16_t maxEchoTime, maxTime;
|
uint16_t maxEchoTime;
|
||||||
|
|
||||||
maxEchoTime = min(max_cm_distance + 1, (uint16_t) MAX_SENSOR_DISTANCE + 1) * US_ROUNDTRIP_CM;
|
maxEchoTime = min(max_cm_distance + 1, (uint16_t) MAX_SENSOR_DISTANCE + 1) * US_ROUNDTRIP_CM;
|
||||||
|
|
||||||
|
@ -89,7 +90,8 @@ uint16_t Sr04Ping(uint16_t max_cm_distance)
|
||||||
return (duration > maxEchoTime) ? 0 : duration;
|
return (duration > maxEchoTime) ? 0 : duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t Sr04GetSamples(uint8_t it, uint16_t max_cm_distance) {
|
uint16_t Sr04GetSamples(uint8_t it, uint16_t max_cm_distance)
|
||||||
|
{
|
||||||
uint16_t uS[it];
|
uint16_t uS[it];
|
||||||
uint16_t last;
|
uint16_t last;
|
||||||
uint8_t j;
|
uint8_t j;
|
||||||
|
|
Loading…
Reference in New Issue