From: Jan Losinski Date: Thu, 12 Jan 2017 15:39:32 +0000 (+0100) Subject: Change probe cal pin for 6022BL to PC2 X-Git-Tag: sigrok-firmware-fx2lafw-0.1.5~10 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cbd1bc65eeeae1c9a21970395941c77654fd32f0;p=sigrok-firmware-fx2lafw.git Change probe cal pin for 6022BL to PC2 In contrast to the 6022BE it is not connected to PA7 but to PC2 on the 6022BL. Signed-off-by: Jan Losinski --- diff --git a/hantek_6022bl.c b/hantek_6022bl.c index dfd35226..2e86a2ac 100644 --- a/hantek_6022bl.c +++ b/hantek_6022bl.c @@ -66,7 +66,9 @@ void suspend_isr(void) __interrupt SUSPEND_ISR void timer2_isr(void) __interrupt TF2_ISR { - PA7 = !PA7; + /* Toggle the 1kHz calibration pin, only accurate up to ca 8MHz. */ + PC2 = !PC2; + if (ledcounter) { if (--ledcounter == 0) { /* Clear LED. */