diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-01-04 03:15:12 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-01-04 03:15:12 +0400 |
commit | ed8c33d914b707e4b1c8d43c8f21a2936110ad85 (patch) | |
tree | 7d6ef4eba78215aee4851b35365eb885ef5a8de2 | |
parent | 62fd66490883efa9582f15a64f78fc36f62b21a0 (diff) | |
parent | f256921efea7bddefb5dd66a6a996a061703bfa9 (diff) |
Merge branch 'master' of https://github.com/FastLED/FastLEDv2-finalrcv2-final
-rw-r--r-- | lib8tion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib8tion.cpp b/lib8tion.cpp index 224d44f2..d7d6b13e 100644 --- a/lib8tion.cpp +++ b/lib8tion.cpp @@ -82,11 +82,11 @@ void * memcpy8 ( void * dst, void* src, uint16_t num ) //__attribute__ ((noinline)) void * memmove8 ( void * dst, void* src, uint16_t num ) { - if( src < dst) { - // if src < dst then we can use the forward-stepping memcpy8 + if( src > dst) { + // if src > dst then we can use the forward-stepping memcpy8 return memcpy8( dst, src, num); } else { - // if src > dst then we have to step backward: + // if src < dst then we have to step backward: dst = (char*)dst + num; src = (char*)src + num; asm volatile( |