|
@@ -20,13 +20,13 @@ QueueHandle_t toshibaTxQueue = NULL;
|
|
|
|
|
|
void toshibaTxTask(void *pvParameter)
|
|
void toshibaTxTask(void *pvParameter)
|
|
{
|
|
{
|
|
- ESP_LOGI("TX", "toshibaTxTask() starting.");
|
|
|
|
|
|
+ ESP_LOGI("IR_TRANSMIT", "toshibaTxTask() starting.");
|
|
|
|
|
|
uint8_t data[8];
|
|
uint8_t data[8];
|
|
|
|
|
|
while( true ) {
|
|
while( true ) {
|
|
if( xQueueReceive( toshibaTxQueue, data, 100 ) == pdTRUE ) {
|
|
if( xQueueReceive( toshibaTxQueue, data, 100 ) == pdTRUE ) {
|
|
- ESP_LOGI("TOSHIBA","Received a TX from MQTT");
|
|
|
|
|
|
+ ESP_LOGI("IR_TRANSMIT","Received a TX from MQTT");
|
|
|
|
|
|
uint8_t irPair = 1;
|
|
uint8_t irPair = 1;
|
|
for(uint8_t b=0;b<kToshibaNumberOfBits;b++) {
|
|
for(uint8_t b=0;b<kToshibaNumberOfBits;b++) {
|
|
@@ -84,5 +84,5 @@ void initIrTransmit() {
|
|
toshibaTxQueue = xQueueCreate( 5, kToshibaNumberOfBytes );
|
|
toshibaTxQueue = xQueueCreate( 5, kToshibaNumberOfBytes );
|
|
xTaskCreatePinnedToCore(toshibaTxTask, "toshibaTxTask", 1024*10, NULL, 2, NULL,0);
|
|
xTaskCreatePinnedToCore(toshibaTxTask, "toshibaTxTask", 1024*10, NULL, 2, NULL,0);
|
|
|
|
|
|
- ESP_LOGI("IR_TX","Init done.");
|
|
|
|
|
|
+ ESP_LOGI("IR_TRANSMIT","Init done.");
|
|
}
|
|
}
|