mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix more warnings seen with "--warnings all"
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
a1d4a36379
commit
c5e254c9a9
3 changed files with 6 additions and 6 deletions
|
|
@ -1831,7 +1831,7 @@ static somfy_rx_queue_t rx_queue;
|
|||
|
||||
bool somfy_tx_queue_t::pop(somfy_tx_t *tx) {
|
||||
// Read the oldest index.
|
||||
for(uint8_t i = MAX_TX_BUFFER - 1; i >= 0; i--) {
|
||||
for(int8_t i = MAX_TX_BUFFER - 1; i >= 0; i--) {
|
||||
if(this->index[i] < MAX_TX_BUFFER) {
|
||||
uint8_t ndx = this->index[i];
|
||||
memcpy(tx, &this->items[ndx], sizeof(somfy_tx_t));
|
||||
|
|
@ -1881,7 +1881,7 @@ void somfy_rx_queue_t::init() {
|
|||
bool somfy_rx_queue_t::pop(somfy_rx_t *rx) {
|
||||
// Read off the data from the oldest index.
|
||||
//Serial.println("Popping RX Queue");
|
||||
for(uint8_t i = MAX_RX_BUFFER - 1; i >= 0; i--) {
|
||||
for(int8_t i = MAX_RX_BUFFER - 1; i >= 0; i--) {
|
||||
if(this->index[i] < MAX_RX_BUFFER) {
|
||||
uint8_t ndx = this->index[i];
|
||||
memcpy(rx, &this->items[this->index[i]], sizeof(somfy_rx_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue