software question

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear People,
I'm using ATmega128 with WINAVR all is o.k. !!
I have only one software problem

in file one.c

char label=FALSE;

while(!label)
{
if(alm.allarme)
label=TRUE;

bug();
}

in file two.c

void bug(void)
{
}

if I eliminate bug() the program loops in the while istruction forever
also if alm.allarme becomes TRUE (in timer)

if I put bug() in file one.c and I write it into the while the same loop

what a strange thing !!!

ciao

fabrizio baldinini