Skip to content

Commit

Permalink
Remove non-nessesary printArray function
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Feb 28, 2025
1 parent 89c1ada commit 75127eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions flix/rc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ void calibrateRC() {
}

void printRCCal() {
printArray(channelNeutral, 16);
printArray(channelMax, 16);
for (int i = 0; i < sizeof(channelNeutral) / sizeof(channelNeutral[0]); i++) Serial.printf("%d ", channelNeutral[i]);
Serial.printf("\n");
for (int i = 0; i < sizeof(channelMax) / sizeof(channelMax[0]); i++) Serial.printf("%d ", channelMax[i]);
Serial.printf("\n");
}
8 changes: 0 additions & 8 deletions flix/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ float wrapAngle(float angle) {
return angle;
}

template <typename T>
void printArray(T arr[], int size) {
for (uint8_t i = 0; i < size; i++) {
Serial.printf("%g ", static_cast<float>(arr[i]));
}
Serial.println();
}

// Disable reset on low voltage
void disableBrownOut() {
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA);
Expand Down

0 comments on commit 75127eb

Please sign in to comment.