From cb9508b2ac7f5cf7985ef973db842a7a1b35100c Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Thu, 16 May 2024 23:19:18 +0200 Subject: [PATCH] Use defined FLASH_PIN for setting LED --- flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash.c b/flash.c index 493b039..7b11684 100644 --- a/flash.c +++ b/flash.c @@ -2,7 +2,7 @@ #include <8052.h> #ifndef FLASH_PIN -#define FLASH_PIN P2_0 +#define FLASH_PIN _P2_0 #endif #ifndef IRQFREQ @@ -31,7 +31,7 @@ void handler() __interrupt 1 dec _ctr_w cjne a,_ctr_w, 00001$ - cpl _P2_0 + cpl FLASH_PIN __endasm; ctr_l = TCT&0xFF;