mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Remove non-nessesary printArray function
This commit is contained in:
parent
e3c6a0d4df
commit
bfef7bd26a
@ -62,6 +62,8 @@ void calibrateRC() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void printRCCal() {
|
void printRCCal() {
|
||||||
printArray(channelNeutral);
|
for (int i = 0; i < sizeof(channelNeutral) / sizeof(channelNeutral[0]); i++) Serial.printf("%g ", channelNeutral[i]);
|
||||||
printArray(channelMax);
|
Serial.printf("\n");
|
||||||
|
for (int i = 0; i < sizeof(channelMax) / sizeof(channelMax[0]); i++) Serial.printf("%g ", channelMax[i]);
|
||||||
|
Serial.printf("\n");
|
||||||
}
|
}
|
||||||
|
@ -30,14 +30,6 @@ float wrapAngle(float angle) {
|
|||||||
return angle;
|
return angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, int N>
|
|
||||||
void printArray(const T (&arr)[N]) {
|
|
||||||
for (int i = 0; i < N; 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