mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-01 23:53:02 +03:00
Correct preprocessor logic to avoid data gap on the Mega.
Fixes issue #14 where I copied the preprocessor logic from a different Mega related check and didn't fix up the elif. So samples from 512 - 1023 were always zero on the Mega. Update to v0.12
This commit is contained in:
@@ -1154,7 +1154,7 @@ void captureInline2mhz() {
|
||||
INLINE_NOP;
|
||||
logicdata[531] = CHANPIN;
|
||||
INLINE_NOP;
|
||||
#if defined(__AVR_ATmega328P__)
|
||||
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
logicdata[532] = CHANPIN;
|
||||
INLINE_NOP;
|
||||
logicdata[533] = CHANPIN;
|
||||
@@ -2139,7 +2139,8 @@ void captureInline2mhz() {
|
||||
INLINE_NOP;
|
||||
logicdata[1023] = CHANPIN;
|
||||
INLINE_NOP;
|
||||
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
#endif
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
logicdata[1024] = CHANPIN;
|
||||
INLINE_NOP;
|
||||
logicdata[1025] = CHANPIN;
|
||||
|
||||
Reference in New Issue
Block a user