Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 788583d

Browse files
committed
fixed assembler instructions to work without optimization
1 parent e25fabd commit 788583d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsrc/leddevice/LedDeviceWS2812b.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ LedDeviceWS2812b::LedDeviceWS2812b() :
268268
static inline __attribute__((always_inline)) uint32_t arm_ror_imm(uint32_t v, uint32_t sh)
269269
{
270270
uint32_t d;
271-
asm ("ROR %[Rd], %[Rm], %[Is]" : [Rd] "=r" (d) : [Rm] "r" (v), [Is] "i" (sh));
271+
asm ("ROR %[Rd], %[Rm], %[Is]" : [Rd] "=r" (d) : [Rm] "r" (v), [Is] "r" (sh));
272272
return d;
273273
}
274274

@@ -278,7 +278,7 @@ static inline __attribute__((always_inline)) uint32_t arm_ror_imm_add_on_carry(u
278278
uint32_t d;
279279
asm ("RORS %[Rd], %[Rm], %[Is]\n\t"
280280
"ADDCS %[Rd1], %[Rd1], #1"
281-
: [Rd] "=r" (d), [Rd1] "+r" (inc): [Rm] "r" (v), [Is] "i" (sh));
281+
: [Rd] "=r" (d), [Rd1] "+r" (inc): [Rm] "r" (v), [Is] "r" (sh));
282282
return d;
283283
}
284284

0 commit comments

Comments
 (0)