mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
fix to tx_mode
This commit is contained in:
@@ -348,7 +348,7 @@ void showInfo() {
|
|||||||
if (ems_getTxCapable()) {
|
if (ems_getTxCapable()) {
|
||||||
char valuestr[8] = {0}; // for formatting floats
|
char valuestr[8] = {0}; // for formatting floats
|
||||||
myDebug_P(PSTR(" Tx: Last poll=%s seconds ago, Tx mode=%d, # successful write requests=%d"),
|
myDebug_P(PSTR(" Tx: Last poll=%s seconds ago, Tx mode=%d, # successful write requests=%d"),
|
||||||
_float_to_char(valuestr, (ems_getPollFrequency() / (float)1000000), 3),
|
_float_to_char(valuestr, (ems_getPollFrequency() / (float)1000000), 3), ems_getTxMode(),
|
||||||
EMS_Sys_Status.emsTxPkgs);
|
EMS_Sys_Status.emsTxPkgs);
|
||||||
} else {
|
} else {
|
||||||
myDebug_P(PSTR(" Tx: no signal"));
|
myDebug_P(PSTR(" Tx: no signal"));
|
||||||
|
|||||||
@@ -249,7 +249,6 @@ void ICACHE_FLASH_ATTR emsuart_tx_buffer(uint8_t * buf, uint8_t len) {
|
|||||||
// wait for echo from busmaster
|
// wait for echo from busmaster
|
||||||
while ((((USS(EMSUART_UART) >> USRXC) & 0xFF) < i || (USIS(EMSUART_UART) & (1 << UIBD)))) {
|
while ((((USS(EMSUART_UART) >> USRXC) & 0xFF) < i || (USIS(EMSUART_UART) & (1 << UIBD)))) {
|
||||||
delayMicroseconds(EMSUART_BIT_TIME); // burn CPU cycles...
|
delayMicroseconds(EMSUART_BIT_TIME); // burn CPU cycles...
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define APP_NAME "EMS-ESP"
|
#define APP_NAME "EMS-ESP"
|
||||||
#define APP_VERSION "1.8.0b6"
|
#define APP_VERSION "1.8.0b7"
|
||||||
#define APP_HOSTNAME "ems-esp"
|
#define APP_HOSTNAME "ems-esp"
|
||||||
|
|||||||
Reference in New Issue
Block a user