diyruz / flower

DIY Zigbee flower sensor
https://modkam.ru/?p=1700
GNU General Public License v3.0
388 stars 79 forks source link

Debbug to I/O Terminal of IAR will show wrong numbers ; String is OK #47

Open Armin-Ka opened 2 years ago

Armin-Ka commented 2 years ago

Hello, i try to Debbug with the SmartRF04B Programmer/Debugger in IAR I/O Terminal. The Source is allready Prepared for this possibility. I will See the published Strings,which will be OK. But if there are Numbers they will be wrong: e.g. in File zcl_app.c Function zclApp_ReadSensors

LREP("currentSensorsReadingPhase %d\r\n", currentSensorsReadingPhase);  ---> will show: currentSensorsReadingPhase 1233

I add a Line after the Above One printf("currentSensorsReadingPhase %d \r\n",currentSensorsReadingPhase); ----> will show: currentSensorsReadingPhase 0

I do not understand this issue. Please Help. Thanks in advance Armin