mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
修复warning
This commit is contained in:
parent
c3c3cf15ed
commit
00747f7ed5
2 changed files with 2 additions and 1 deletions
1
am_fix.c
1
am_fix.c
|
@ -269,6 +269,7 @@ switch (gCurrentFunction)
|
|||
#ifdef ENABLE_AM_FIX_SHOW_DATA
|
||||
counter = display_update_rate; // queue up a display update as soon as we switch to RX mode
|
||||
#endif
|
||||
default:
|
||||
return;
|
||||
|
||||
|
||||
|
|
|
@ -693,7 +693,7 @@ void SETTINGS_SaveChannelName(uint8_t channel, const char * name)
|
|||
{
|
||||
uint16_t offset = channel * 16;
|
||||
uint8_t buf[16] = {0};
|
||||
memcpy(buf, name, MIN(strlen(name), MAX_EDIT_INDEX));
|
||||
memcpy(buf, name, MIN(( int)strlen(name), MAX_EDIT_INDEX));
|
||||
EEPROM_WriteBuffer(0x0F50 + offset, buf,8);
|
||||
EEPROM_WriteBuffer(0x0F58 + offset, buf + 8,8);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue