Keep esp32 and esp8266 version specific tweaks separate.

This commit is contained in:
ccrause 2021-11-27 15:18:24 +02:00 committed by florian
parent a58567004b
commit ab00794343
2 changed files with 7 additions and 2 deletions

View File

@ -1320,11 +1320,16 @@ begin
set_system_compvar('IDF_VERSION','30300');
idf_version:=30300;
end;
else
ct_esp32:
begin
set_system_compvar('IDF_VERSION','40200');
idf_version:=40200;
end;
else
begin
set_system_compvar('IDF_VERSION','00000');
idf_version:=0;
end;
end;
end;
{$endif XTENSA}

View File

@ -415,7 +415,7 @@ implementation
{$pop}
{$ifdef XTENSA}
if not(current_module.is_unit) and (target_info.system=system_xtensa_freertos) then
if idf_version>=40200 then
if (current_settings.controllertype=ct_esp32) and (idf_version>=40200) then
AddUnit('espidf_40200');
{$endif XTENSA}
end;