We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09517d commit c9df214Copy full SHA for c9df214
main/Kconfig.projbuild
@@ -276,10 +276,4 @@ config ENABLE_AUDIO_PROMPT
276
Select this to enable Audio Prompt.
277
endmenu
278
279
-config FIRMWARE_VERSION
280
- string "Firmware Version"
281
- default "v3.2.1"
282
- help
283
- Set Firmware Version.
284
-
285
main/src/os/firmware.c
@@ -8,12 +8,13 @@
8
#include <string.h>
9
10
#include "esp_log.h"
11
+#include "esp_ota_ops.h"
12
13
#define TAG "os_firmware"
14
-const char *version = CONFIG_FIRMWARE_VERSION;
15
16
const char *os_firmware_get_version(void)
17
{
18
- return version;
+ const esp_app_desc_t *app_desc = esp_ota_get_app_description();
+
19
+ return (const char *)app_desc->version;
20
}
0 commit comments