Closed vedes closed 7 years ago
The description asks a question "It is better to replace the return type in IrGetCode with String." and I don't know the answer - so unsure whether to merge or not.
Welcome back TonyCaller! I just tried to use the ir_getcode block and got an error when I compiling. I tried different ways to connect this block, but nothing is worked. The problem is that IrGetCode result is char[] however variables blocks in checks is need the String type. So I had to change the IrGetCode method to make the program work. Do you have a better solution to this problem? If yes, tell me please.
Well, it compiles in Arduino and does not seem to affect anything else - I am not much help after that! Remember - I don't have the hardware or even much idea of what it's trying to do.
I will merge this later today, unless anyone points out a problem.
Thanks TonyCallear!
hi :) created an account just to help you as your requested in https://github.com/taweili/ardublock/releases/tag/beta-20171028
i hope i can be of help testing your TC version.
…ethod
The IrGetCode block uses char as the result, but the string validation methods use either char [] or String. This leads to a type mismatch error in the Arduino source code. It is better to replace the return type in IrGetCode with String.