Reduced useless warnings

This commit is contained in:
feedc0de committed 2021-12-28 02:34:06 +01:00
1 parent 51adf73c58
commit 5a3c3866d1
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -132,9 +132,9 @@ class SPIOutput<SPI_UART1_DATA, SPI_UART1_CLOCK, SPI_SPEED> : public AVRUSART1SP
#else #else
# if !defined(FASTLED_INTERNAL) && !defined(FASTLED_ALL_PINS_HARDWARE_SPI) # if !defined(FASTLED_INTERNAL) && !defined(FASTLED_ALL_PINS_HARDWARE_SPI)
# ifdef FASTLED_HAS_PRAGMA_MESSAGE # 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 # 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 # endif
#endif #endif
+1 -1
View File
@@ -433,7 +433,7 @@ void ESP32RMTController::startOnChannel(int channel)
if (FASTLED_RMT_BUILTIN_DRIVER) { if (FASTLED_RMT_BUILTIN_DRIVER) {
// -- Use the built-in RMT driver to send all the data in one shot // -- 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); rmt_write_items(mRMT_channel, mBuffer, mBufferSize, false);
} else { } else {
// -- Use our custom driver to send the data incrementally // -- Use our custom driver to send the data incrementally
+1 -1
View File
@@ -117,7 +117,7 @@ extern "C" {
#include "esp_intr_alloc.h" #include "esp_intr_alloc.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "driver/rmt.h" #include "driver/rmt.h"
#include "driver/periph_ctrl.h" #include "esp_private/periph_ctrl.h"
#include "freertos/semphr.h" #include "freertos/semphr.h"
#include "soc/rmt_struct.h" #include "soc/rmt_struct.h"