mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 20:38:59 +00:00
Remove non-nessesary printArray function
This commit is contained in:
parent
89c1ada005
commit
75127eb6f8
@ -54,6 +54,8 @@ void calibrateRC() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void printRCCal() {
|
void printRCCal() {
|
||||||
printArray(channelNeutral, 16);
|
for (int i = 0; i < sizeof(channelNeutral) / sizeof(channelNeutral[0]); i++) Serial.printf("%d ", channelNeutral[i]);
|
||||||
printArray(channelMax, 16);
|
Serial.printf("\n");
|
||||||
|
for (int i = 0; i < sizeof(channelMax) / sizeof(channelMax[0]); i++) Serial.printf("%d ", channelMax[i]);
|
||||||
|
Serial.printf("\n");
|
||||||
}
|
}
|
||||||
|
@ -30,14 +30,6 @@ float wrapAngle(float angle) {
|
|||||||
return 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
|
// Disable reset on low voltage
|
||||||
void disableBrownOut() {
|
void disableBrownOut() {
|
||||||
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA);
|
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user