From fa41a91f384a9c0c95f8f2e777f9670dce02c465 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 24 Mar 2020 20:11:58 -0300 Subject: [PATCH] Only update POST card if the POST code has actually changed Fixes tpatx and possibly other boards taking forever to boot with the POST card enabled due to constant refreshing with the same value. --- src/postcard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/postcard.c b/src/postcard.c index 9662d3ae6..1c7dc4ac2 100644 --- a/src/postcard.c +++ b/src/postcard.c @@ -95,6 +95,9 @@ postcard_reset(void) static void postcard_write(uint16_t port, uint8_t val, void *priv) { + if (postcard_written && val == postcard_code) + return; + postcard_prev_code = postcard_code; postcard_code = val; if (postcard_written < 2)