From 3c08354d18a2d75ee0eaf3ab3221a7b0ab714c25 Mon Sep 17 00:00:00 2001 From: ko1N Date: Sun, 18 Dec 2022 22:28:32 +0100 Subject: [PATCH] In case the end-user requests auto-clear to be enabled but auto-clear fails to be configured this is now a hard error --- memflow-pcileech/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/memflow-pcileech/src/lib.rs b/memflow-pcileech/src/lib.rs index 71a824e..c87ae9a 100644 --- a/memflow-pcileech/src/lib.rs +++ b/memflow-pcileech/src/lib.rs @@ -136,7 +136,8 @@ impl PciLeech { { info!("Successfully enabled status register auto-clear"); } else { - warn!("Could not enable status register auto-clear"); + return Err(Error(ErrorOrigin::Connector, ErrorKind::Configuration) + .log_error("Could not enable status register auto-clear due to outdated bitstream.")); } } else { return Err(Error(ErrorOrigin::Connector, ErrorKind::Configuration)