sms: Add missing brackets in the relative validity time calculation.

This commit is contained in:
Alexander Chemeris 2014-03-07 21:00:19 +01:00 committed by Holger Hans Peter Freyther
parent d0ed9218bc
commit cc0645b26d
1 changed files with 3 additions and 3 deletions

View File

@ -138,13 +138,13 @@ static unsigned long gsm340_vp_relative(uint8_t *sms_vp)
vp = *(sms_vp);
if (vp <= 143)
minutes = vp + 1 * 5;
minutes = (vp + 1) * 5;
else if (vp <= 167)
minutes = 12*60 + (vp-143) * 30;
else if (vp <= 196)
minutes = vp-166 * 60 * 24;
minutes = (vp-166) * 60 * 24;
else
minutes = vp-192 * 60 * 24 * 7;
minutes = (vp-192) * 60 * 24 * 7;
return minutes;
}