Merge pull request #1467 from nielsnl68/fix_other_warning

remove a warning that still does not make sense.
This commit is contained in:
Mark Kriegsman 2023-05-29 11:36:44 -04:00 committed by GitHub
commit 4460dc8b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,13 @@ protected:
template<int BITS> __attribute__ ((always_inline)) inline static bool writeBits(REGISTER uint32_t & last_mark, REGISTER uint32_t b) {
b <<= 24; b = ~b;
for(REGISTER uint32_t i = BITS; i > 0; --i) {
while((__clock_cycles() - last_mark) < (T1+T2+T3));
last_mark = __clock_cycles();
while((__clock_cycles() - last_mark) < (T1+T2+T3)) {
// the current compiler does like just a ; to end of THIS while loop
// altrough this change make no sense because below are more of the same while loops without
// compiler warning.
;
}
last_mark = __clock_cycles();
FastPin<DATA_PIN>::hi();
while((__clock_cycles() - last_mark) < T1);