Embed ware version interface in shimlib

This commit is contained in:
Krad
2022-03-16 16:59:44 +08:00
parent fb525d3cdd
commit f4fdb4d223
2 changed files with 4 additions and 1 deletions

View File

@@ -111,6 +111,8 @@ const char* GetDeviceInfo(DeviceInfo infoType) {
switch (infoType) { switch (infoType) {
case MEAN_TEMPERATURE: case MEAN_TEMPERATURE:
return "28"; return "28";
case VERSION:
return "v6.6.06";
} }
return ""; return "";
} }

View File

@@ -29,7 +29,8 @@ typedef enum {
//kinds of device information //kinds of device information
typedef enum { typedef enum {
MEAN_TEMPERATURE MEAN_TEMPERATURE,
VERSION
} DeviceInfo; } DeviceInfo;
extern int InitLib(void(*)(const char *msg)); extern int InitLib(void(*)(const char *msg));