# HG changeset patch # User heinrichsweikamp # Date 1556795545 0 # Node ID 4eb3a96da6ca3dafb5214932d6e2d07ce5af4de6 # Parent c7e665e0b08f38c16f52095a90806ee346bfb1d5# Parent 04cdeff802544d339480441546b3ba0b5779cefe Merged in janlmulder/ostc4/ndl-in-logbook (pull request #22) Bugfix: write NDL in logbook correctly diff -r c7e665e0b08f -r 4eb3a96da6ca Discovery/Src/logbook.c --- 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;