Page 1 of 1

variables not initialized

Posted: 04 May 2013, 19:51 PM
by wwwoholic
I think there is a problem in new compiler. Long time ago I made a mistake in a program. Not even a bug, simply forgot "const", but since I never assigned anything to that it worked just fine. After using new compiler program started behaving erratically. Here is what I found in zbTempDir

source:
public ThrottleReverse as boolean = true

compiled with 4.0.2:
uint8_t zv_ThrottleReverse = ZB_TRUE;

compiled with 4.1.5:
uint8_t zv_ThrottleReverse;

Re: variables not initialized

Posted: 06 May 2013, 8:01 AM
by dkinzer
wwwoholic wrote:I think there is a problem in new compiler.
Thanks for reporting this. The source of the problem has been found and a solution identified. We will post an update after testing is completed.

Posted: 07 May 2013, 10:06 AM
by dkinzer
A new version of the compiler, v4.1.7, with the correction is available on the Downloads page.