From cc838de62ac2a3d975f80c0af636c95bb4414435 Mon Sep 17 00:00:00 2001 From: Ford Peprah Date: Wed, 30 Jul 2025 15:17:48 -0400 Subject: [PATCH] ISSUE-241: Fix excpetion type raised in `.flash()` This patch fixes the wrong exception being raised in the `.flash()` function; currently is `JLinkEraseException()`, is now `JLinkFlashException()`. --- pylink/jlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylink/jlink.py b/pylink/jlink.py index d06ce05..5c7c0da 100644 --- a/pylink/jlink.py +++ b/pylink/jlink.py @@ -2225,7 +2225,7 @@ def flash(self, data, addr, on_progress=None, power_on=False, flags=0): res = self._dll.JLINKARM_EndDownload() if res < 0: - raise errors.JLinkEraseException(res) + raise errors.JLinkFlashException(res) return bytes_flashed