> - It sets the TX complete flag when enabling the tx interrupt. I
> suppose that this results in the tx interrupt being fired without
> actually sending out anything. Removing this might solve the problem.
If you think about these:
SET_BIT(UCSR1A, TXC1);
SET_BIT(UCSR1B, TXCIE1);
Then it is ok, the first just clears the interrupt file register.
However, it should probably be protected by an atomic section. But
this is such a small race condition, so I think this is not the one
being triggered, probably something higher up.
Miklos
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help