diff --git a/app/libuvdbus/src/Framework/Configure/ini_prase.c b/app/libuvdbus/src/Framework/Configure/ini_prase.c index 3542f87..fa0931f 100644 --- a/app/libuvdbus/src/Framework/Configure/ini_prase.c +++ b/app/libuvdbus/src/Framework/Configure/ini_prase.c @@ -12,7 +12,7 @@ #include "libuv_dbus.h" #include "server_addr.h" -#ifdef PLATFORM_R16 +#if defined PLATFORM_R16 || defined PLATFORM_R311 #define DEVICE_CFG_FILE ("/mnt/UDISK/dev.conf") #else #define DEVICE_CFG_FILE ("./dev.conf") diff --git a/app/libuvdbus/src/Framework/libuvEngine/libuv_dbus.c b/app/libuvdbus/src/Framework/libuvEngine/libuv_dbus.c index cffb71a..bb02fa5 100644 --- a/app/libuvdbus/src/Framework/libuvEngine/libuv_dbus.c +++ b/app/libuvdbus/src/Framework/libuvEngine/libuv_dbus.c @@ -1461,7 +1461,7 @@ static void __dBusDeameonCb(MODULE_NAME modName, int status) static void __waitUDISKMount(void) { -#ifdef PLATFORM_R16 +#if defined PLATFORM_R16 || defined PLATFORM_R311 const char* pDoneStat = "done"; const char* pBootStatFile = "/tmp/booting_state"; char buf[5]; @@ -1891,7 +1891,7 @@ void SystemSafeReboot(void) char* GetCpuChipId(void) { char* pRet = NULL; -#ifdef PLATFORM_R16 +#if defined PLATFORM_R16 || defined PLATFORM_R311 char* pChipId = NULL; GetShellExecResult("cat /proc/cpuinfo | grep Chipid | awk '{print $3}'", &pChipId); @@ -1912,7 +1912,7 @@ char* GetCpuChipId(void) char* GetCpuSerial(void) { char* pRet = NULL; -#ifdef PLATFORM_R16 +#if defined PLATFORM_R16 || defined PLATFORM_R311 char* pSerial = NULL; GetShellExecResult("cat /proc/cpuinfo | grep Serial | awk '{print $3}'", &pSerial); diff --git a/app/libuvdbus/src/log/log.c b/app/libuvdbus/src/log/log.c index 0802634..1c86bc5 100644 --- a/app/libuvdbus/src/log/log.c +++ b/app/libuvdbus/src/log/log.c @@ -44,7 +44,7 @@ #define LOG_FILE_BASEDIR ("/tmp") #endif -#ifdef PLATFORM_R16 +#if defined PLATFORM_R16 || defined PLATFORM_R311 #define NIC_NAME ("wlan0") #else #define NIC_NAME ("enp3s0")