warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
The operation is:
Code: Select all
if ( SUBSCRIPTION_EXPIRY_TIME - ((hwRtc - lastSub)*1000) < 0 )
Code: Select all
#define SUBSCRIPTION_EXPIRY_TIME (5*60*1000)
time_t hwRtc
uint32_t lastSub
What am I missing?