Fixed compiler warnings on MD-UV3x0 and MD-9600 targets

pull/88/head
Silvano Seva 2022-07-10 09:23:37 +02:00
rodzic fc6849afb9
commit 7e8a960001
4 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -36,8 +36,7 @@ static const uint16_t bat_v_max = 0x0819; // 8.10V
static const uint16_t bat_v_min = 0x0AD4; // 10.83V
static const uint16_t bat_v_max = 0x0C73; // 12.45V
#elif defined BAT_NONE
static const uint16_t bat_v_min = 0;
static const uint16_t bat_v_max = 0;
// Nothing to do, just avoid arising the compiler error
#else
#error Please define a battery type into platform/targets/.../hwconfig.h
#endif

Wyświetl plik

@ -20,6 +20,11 @@
#include <openrtx.h>
#ifdef PLATFORM_MD9600
#include <interfaces/platform.h>
#include <interfaces/delays.h>
#endif
#ifdef PLATFORM_LINUX
#include <emulator/sdl_engine.h>
#endif

Wyświetl plik

@ -28,7 +28,6 @@
static const uint32_t zoneBaseAddr = 0x149E0; /**< Base address of zones */
static const uint32_t zoneExtBaseAddr = 0x31000; /**< Base address of zone extensions */
static const uint32_t vfoChannelBaseAddr = 0x2EF00; /**< Base address of VFO channel */
static const uint32_t chDataBaseAddr = 0x110000; /**< Base address of channel data */
static const uint32_t contactBaseAddr = 0x140000; /**< Base address of contacts */
static const uint32_t maxNumChannels = 3000; /**< Maximum number of channels in memory */

Wyświetl plik

@ -170,6 +170,7 @@ int nvm_readSettings(settings_t *settings)
int nvm_writeSettings(const settings_t *settings)
{
(void) settings;
// Disable settings write until DFU is implemented for flash backups
return -1;
}