1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Fixes once I could compile

- Compiled docs
- Added missed comma
- Changed one missed `name` to `craftName`
This commit is contained in:
Darren Lines 2023-01-19 18:13:11 +00:00
parent 3af195410d
commit 6d509ca05f
3 changed files with 12 additions and 2 deletions

View file

@ -4762,6 +4762,16 @@ A limitation to overall amount of correction Flight PID can request on each axis
---
### pilot_name
Pilot name
| Default | Min | Max |
| --- | --- | --- |
| _empty_ | | MAX_NAME_LENGTH |
---
### pinio_box1
Mode assignment for PINIO#1

View file

@ -118,7 +118,7 @@ PG_RESET_TEMPLATE(systemConfig_t, systemConfig,
.cpuUnderclock = SETTING_CPU_UNDERCLOCK_DEFAULT,
#endif
.throttle_tilt_compensation_strength = SETTING_THROTTLE_TILT_COMP_STR_DEFAULT, // 0-100, 0 - disabled
.craftName = SETTING_NAME_DEFAULT
.craftName = SETTING_NAME_DEFAULT,
.pilotName = SETTING_NAME_DEFAULT
);

View file

@ -2746,7 +2746,7 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src)
case MSP_SET_NAME:
if (dataSize <= MAX_NAME_LENGTH) {
char *name = systemConfigMutable()->name;
char *name = systemConfigMutable()->craftName;
int len = MIN(MAX_NAME_LENGTH, (int)dataSize);
sbufReadData(src, name, len);
memset(&name[len], '\0', (MAX_NAME_LENGTH + 1) - len);