Commit bfb6bd4
committed
Fix interval type in STATE_REG_HOLD_OFF for overdue registrations
Updated `interval` type from `time_t` to `int32_t` in registration.c
to correctly handle negative differences when currentTime exceeds
targetP->registration. This fixes a bug where unsigned `time_t`
caused large positive intervals, delaying registrations.
The change ensures compliance with LwM2M registration timing requirements.
Signed-off-by: CMT-Ashish <[email protected]>1 parent d9f3866 commit bfb6bd4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2069 | 2069 | | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | | - | |
| 2072 | + | |
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
| |||
0 commit comments