feat(radio): refactor of switch handling to better support customisable switches (#6095)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
co-authored by
philmoz
3djc
elecpower
parent
28833f42e6
commit
0c8c39b134
+2
-2
@@ -198,7 +198,7 @@ void writeHeader()
|
||||
f_puts(",", &g_oLogFile);
|
||||
}
|
||||
|
||||
for (uint8_t i = 0; i < switchGetMaxSwitches(); i++) {
|
||||
for (uint8_t i = 0; i < switchGetMaxAllSwitches(); i++) {
|
||||
if (SWITCH_EXISTS(i)) {
|
||||
char s[LEN_SWITCH_NAME + 2];
|
||||
char * temp;
|
||||
@@ -341,7 +341,7 @@ void logsWrite()
|
||||
f_printf(&g_oLogFile, "%d,", calibratedAnalogs[offset + i]);
|
||||
}
|
||||
|
||||
for (uint8_t i = 0; i < switchGetMaxSwitches(); i++) {
|
||||
for (uint8_t i = 0; i < switchGetMaxAllSwitches(); i++) {
|
||||
if (SWITCH_EXISTS(i)) {
|
||||
f_printf(&g_oLogFile, "%d,", getSwitchState(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user