Hi Urs.
> I would be interested in learning whether this solved your issues.
>
Thanks, this seems to work.
This code:
uint16_t a = 32000;
uint32_t b = 64000L;
printf("a: %d (%d)\n", a, sizeof(a));
printf("b: %lu (%d)\n", b, sizeof(b));
Now gives me this output:
a: 32000 (2)
b: 64000 (4)
And I no longer get compiler warnings.
It also works for larger values of b. I want to keep track of the
current time on motes (seconds since midnight), your tips save me from
having to split it into hours and seconds.
David.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help