From 21ae53e199bfaae43500dccd1354bb3aff9c727f Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Wed, 30 Aug 2023 17:23:49 +0200 Subject: [PATCH] Seproxyhal: default status_sent value upon app launch is unset --- CHANGELOG.md | 5 +++++ speculos/mcu/seproxyhal.py | 1 - src/bolos/seproxyhal.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3886acdd..9b0b544a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.9] - 2023-08-31 + +### Fixed +- Seproxyhal: default status_sent value upon app launch is unset. + ## [0.2.8] - 2023-07-31 ### Changed diff --git a/speculos/mcu/seproxyhal.py b/speculos/mcu/seproxyhal.py index 0f9816ee..e6290c1c 100644 --- a/speculos/mcu/seproxyhal.py +++ b/speculos/mcu/seproxyhal.py @@ -256,7 +256,6 @@ def __init__(self, self.refreshed = False self.status_event = threading.Event() - self.status_event.set() self.socket_helper = SocketHelper(self._socket, self.status_event) self.socket_helper.start() diff --git a/src/bolos/seproxyhal.c b/src/bolos/seproxyhal.c index a83830ca..c4d510be 100644 --- a/src/bolos/seproxyhal.c +++ b/src/bolos/seproxyhal.c @@ -11,7 +11,7 @@ #define SEPROXYHAL_TAG_STATUS_MASK 0xF0 #define SEPROXYHAL_TAG_GENERAL_STATUS 0x60 -static bool tx_status = true; +static bool tx_status = false; static uint32_t rx_length = 0; static uint8_t last_tag; static size_t next_length;