Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib8tion.cpp6
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(