From 6d59a3508069587e40ab797af632ec4dff3b6850 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 14 Jul 2024 22:00:52 +1200 Subject: [PATCH] ensure checksums match for provisioned status --- rnode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rnode.js b/rnode.js index 36da3e4..52ddf41 100644 --- a/rnode.js +++ b/rnode.js @@ -707,6 +707,11 @@ class ROM { }; } + // if checksum in eeprom does not match calculated checksum, it is not provisioned + if(details.checksum !== details.calculated_checksum){ + details.is_provisioned = false; + } + return details; }