Ltech,
No, the "-" is not a bug. I'm not sure I understand your 'Fault at : 50 and 53'
The line... '#-10, HST,AtST,PST,MST,CST,EST,AlST' ... In the Propeller IDE evaluates to ...
HST = -10
AtST = -9
PST = -8
MST = -7
CST = -6 <-- I am in Central USA time zone which is GMT - 6
EST = -5
AlST = -4
...likewise for the Daylight time zones
If you want GMT + 1, then in the CON section, just make...
BST = 1 or CET = 1 or wherever you may be.
The line of code that this constant gets applied to reads ...
Code:
SNTP.GetTransmitTimestamp(CST,@Buffer,@LongHIGH,@LongLOW)
... Change 'CST' to your abbreviation or just hard code the number in its place like this...
Code:
SNTP.GetTransmitTimestamp(+1,@Buffer,@LongHIGH,@LongLOW)
LongHIGH contains the upper 32 Bits of the 64 Bit time stamp <--- Seconds
LongLOW contains the lower 32 Bits of the 64 Bit time stamp <--- Fractional seconds
Bookmarks