Mercurial > public > ostc4
changeset 284:4eb3a96da6ca
Merged in janlmulder/ostc4/ndl-in-logbook (pull request #22)
Bugfix: write NDL in logbook correctly
author | heinrichsweikamp <bitbucket@heinrichsweikamp.com> |
---|---|
date | Thu, 02 May 2019 11:12:25 +0000 |
parents | c7e665e0b08f (current diff) 04cdeff80254 (diff) |
children | ab6c42d2d30b |
files | |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/logbook.c Wed May 01 14:45:47 2019 +0200 +++ b/Discovery/Src/logbook.c Thu May 02 11:12:25 2019 +0000 @@ -520,7 +520,7 @@ { sample[length] = 0; length += 1; - sample[length] = (uint8_t)pDecoinfo->output_ndl_seconds / 60; + sample[length] = (uint8_t)(pDecoinfo->output_ndl_seconds / 60); // Limit stored sample within 0 to 240 mins (Since it's 8bit UINT only) if ((pDecoinfo->output_ndl_seconds / 60) > 240) sample[length] = 240;