Write 'semver' tag with the current firmware version (#1695)

And remove `version`/`variant`.
This commit is contained in:
Raphael Coeffic
2022-03-20 19:18:01 +10:00
committed by GitHub
parent 76ae89d2f2
commit 610326f216
25 changed files with 69 additions and 108 deletions
-5
View File
@@ -272,8 +272,6 @@ void setDefaultOwnerId()
void generalDefault()
{
memclear(&g_eeGeneral, sizeof(g_eeGeneral));
g_eeGeneral.version = EEPROM_VER;
g_eeGeneral.variant = EEPROM_VARIANT;
#if defined(PCBHORUS)
g_eeGeneral.blOffBright = 20;
@@ -1670,9 +1668,6 @@ void copyMinMaxToOutputs(uint8_t ch)
inline uint32_t PWR_PRESS_DURATION_MIN()
{
if (g_eeGeneral.version != EEPROM_VER)
return 200;
return (2 - g_eeGeneral.pwrOnSpeed) * 100;
}