mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
Free unused buffer
This commit is contained in:
parent
6ef6a73cb9
commit
1c441f9059
@ -243,10 +243,10 @@ void CseSnsInit(void)
|
|||||||
|
|
||||||
void CseDrvInit(void)
|
void CseDrvInit(void)
|
||||||
{
|
{
|
||||||
Cse.rx_buffer = (uint8_t*)(malloc(CSE_BUFFER_SIZE));
|
// if (PinUsed(GPIO_CSE7766_RX) && PinUsed(GPIO_CSE7766_TX)) {
|
||||||
if (Cse.rx_buffer != nullptr) {
|
if (PinUsed(GPIO_CSE7766_RX)) {
|
||||||
// if (PinUsed(GPIO_CSE7766_RX) && PinUsed(GPIO_CSE7766_TX)) {
|
Cse.rx_buffer = (uint8_t*)(malloc(CSE_BUFFER_SIZE));
|
||||||
if (PinUsed(GPIO_CSE7766_RX)) {
|
if (Cse.rx_buffer != nullptr) {
|
||||||
energy_flg = XNRG_02;
|
energy_flg = XNRG_02;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user