From 3a04b1f488c041505665ef1a129c8b0695decb8d Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 12 Apr 2020 12:01:53 +0200 Subject: [PATCH] Add topcard detection for avrdude --- stk500v2/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stk500v2/main.cpp b/stk500v2/main.cpp index 405ce4a..cab4170 100644 --- a/stk500v2/main.cpp +++ b/stk500v2/main.cpp @@ -236,6 +236,8 @@ static inline void formatGetParameterAnswer(Message &msg) msg.body[2] = 2; } else if (msg.body[1] == PARAM_OSC_CMATCH) { msg.body[2] = 127; + } else if (msg.body[1] == PARAM_TOPCARD_DETECT) { + msg.body[2] = 0xFF; } else { msg.size = 2; }