diff options
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 0f216d2..fd92527 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -39,8 +39,7 @@ #include "c1101lib.h" #include "usb_rawhid.h" - -#define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) +#define CPU_PRESCALE(n) do { CLKPR = 0x80; CLKPR = (n); } while(0) uint8_t read_buffer[64]; // buffer for reading usb signals uint8_t write_buffer[64]; // buffer for writing usb signals |