Reduced useless warnings

This commit is contained in:
2021-12-28 02:34:06 +01:00
parent 51adf73c58
commit 5a3c3866d1
3 changed files with 4 additions and 4 deletions

View File

@ -132,9 +132,9 @@ class SPIOutput<SPI_UART1_DATA, SPI_UART1_CLOCK, SPI_SPEED> : public AVRUSART1SP
#else
# if !defined(FASTLED_INTERNAL) && !defined(FASTLED_ALL_PINS_HARDWARE_SPI)
# ifdef FASTLED_HAS_PRAGMA_MESSAGE
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
//# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
# else
# warning "No hardware SPI pins defined. All SPI access will default to bitbanged output"
//# warning "No hardware SPI pins defined. All SPI access will default to bitbanged output"
# endif
# endif
#endif

View File

@ -433,7 +433,7 @@ void ESP32RMTController::startOnChannel(int channel)
if (FASTLED_RMT_BUILTIN_DRIVER) {
// -- Use the built-in RMT driver to send all the data in one shot
rmt_register_tx_end_callback(doneOnRMTChannel, (void *) channel);
rmt_register_tx_end_callback(doneOnRMTChannel, reinterpret_cast<void *>(channel));
rmt_write_items(mRMT_channel, mBuffer, mBufferSize, false);
} else {
// -- Use our custom driver to send the data incrementally

View File

@ -117,7 +117,7 @@ extern "C" {
#include "esp_intr_alloc.h"
#include "driver/gpio.h"
#include "driver/rmt.h"
#include "driver/periph_ctrl.h"
#include "esp_private/periph_ctrl.h"
#include "freertos/semphr.h"
#include "soc/rmt_struct.h"