From 027b01f00f88f7bdb2564454f705f65b75ed693e Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 29 Aug 2024 09:46:40 +0200 Subject: [PATCH] condition code bugfix --- CHANGELOG.md | 2 ++ src/cfdp/mod.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d614b8e..bd9c431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Fixed - Fixed an error in the EOF writer which wrote the fault location to the wrong buffer position. +- cfdp `ConditionCode::CheckLimitReached` previous had the wrong numerical value of `0b1001` (9) + and now has the correct value of `0b1010` (10). ## Changed diff --git a/src/cfdp/mod.rs b/src/cfdp/mod.rs index 193c93f..a1aae5f 100644 --- a/src/cfdp/mod.rs +++ b/src/cfdp/mod.rs @@ -116,7 +116,7 @@ pub enum ConditionCode { FileSizeError = 0b0110, NakLimitReached = 0b0111, InactivityDetected = 0b1000, - CheckLimitReached = 0b1001, + CheckLimitReached = 0b1010, UnsupportedChecksumType = 0b1011, /// Not an actual fault condition for which fault handler overrides can be specified SuspendRequestReceived = 0b1110, -- 2.43.0