# HG changeset patch # User paul # Date 2016-02-23 06:21:41 # Node ID f2bc176d9a3a5ed292c3cfb44c3c11ab00f5f3c5 # Parent 8b34cd5a6c4b50e1f5914d8af460fe725e9c629a bug corrected, the following counter was not properly handled: housekeeping_packet.hk_lfr_ahb_correctable diff --git a/src/fsw_misc.c b/src/fsw_misc.c --- a/src/fsw_misc.c +++ b/src/fsw_misc.c @@ -792,13 +792,6 @@ void set_hk_lfr_ahb_correctable() + iurfErrorCounter + housekeeping_packet.hk_lfr_ahb_correctable; - if (ahb_correctable > 255) - { - housekeeping_packet.hk_lfr_ahb_correctable = 255; - } - else - { - housekeeping_packet.hk_lfr_ahb_correctable = ahb_correctable; - } + housekeeping_packet.hk_lfr_ahb_correctable = (unsigned char) (ahb_correctable & 0xff); // [1111 1111] }