[Tinyos-help] "UARTOutput" a uint32_t error
Philip Levis
pal at cs.stanford.edu
Thu Jan 11 08:30:38 PST 2007
On Jan 11, 2007, at 1:43 AM, Stephen Chow wrote:
> I use the following code for checking a uint32_t data via serial
> connection.
> **********************************************************************
> *************
> {
> char OutputMsg[100];
> sprintf(OutputMsg, "Received Time = %d\r\n", (uint32_t) Ptime);
>
> UARTOutput(DBG_ERROR,"%s", &OutputMsg);
> }
> **********************************************************************
> *************
>
> But the data display on "hyper terminal" is abnormal such as:
>
> Received Time = 2445
> Received Time = -27399
> Received Time = -30925
> Received Time = -7432
What is the UARTOutput function?
Phil
More information about the Tinyos-help
mailing list