From 90fa9b89372028baf1edd77f1a348b10afec99d3 Mon Sep 17 00:00:00 2001 From: openshwprojects Date: Wed, 19 Oct 2022 17:26:02 +0200 Subject: [PATCH] dbg, update submoduke --- sdk/OpenBK7231N | 2 +- src/driver/drv_ir.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sdk/OpenBK7231N b/sdk/OpenBK7231N index be3376893..1a8e8ff2f 160000 --- a/sdk/OpenBK7231N +++ b/sdk/OpenBK7231N @@ -1 +1 @@ -Subproject commit be3376893a5aa50e05b3251bfe9a7eb08c6f6542 +Subproject commit 1a8e8ff2fa441d70ee725ffc9c38413996487e42 diff --git a/src/driver/drv_ir.cpp b/src/driver/drv_ir.cpp index 484fb397c..811ec78f4 100644 --- a/src/driver/drv_ir.cpp +++ b/src/driver/drv_ir.cpp @@ -371,8 +371,8 @@ extern "C" void DRV_IR_ISR(UINT8 t){ extern "C" void DRV_IR_Init(){ ADDLOG_INFO(LOG_FEATURE_CMD, (char *)"Log from extern C CPP"); - unsigned char pin = 9;// PWM3/25 - unsigned char txpin = 24;// PWM3/25 + int pin = 9;// PWM3/25 + int txpin = 24;// PWM3/25 // allow user to change them pin = PIN_FindPinIndexForRole(IOR_IRRecv,pin); @@ -383,6 +383,7 @@ extern "C" void DRV_IR_Init(){ ourReceiver = NULL; delete temp; } + ADDLOG_INFO(LOG_FEATURE_CMD, (char *)"DRV_IR_Init: recv pin %i",pin); ourReceiver = new IRrecv(pin); ourReceiver->start(); @@ -498,7 +499,7 @@ void PrintIRData(IRData *aIRDataPtr){ // should probably be called every 100ms. extern "C" void DRV_IR_RunFrame(){ if (ir_counter){ - //ADDLOG_INFO(LOG_FEATURE_CMD, (char *)"IR counter: %u", ir_counter); + ADDLOG_INFO(LOG_FEATURE_CMD, (char *)"IR counter: %u", ir_counter); } if (pIRsend){ if (pIRsend->overflows){