Permalink
Browse files

Merge branch 'master' of https://github.com/FastLED/FastLED

  • Loading branch information...
focalintent committed Jan 3, 2014
2 parents 62fd664 + f256921 commit ed8c33d914b707e4b1c8d43c8f21a2936110ad85
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib8tion.cpp
View
@@ -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(

0 comments on commit ed8c33d

Please sign in to comment.