mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 17:59:27 +02:00
Keep esp32 and esp8266 version specific tweaks separate.
This commit is contained in:
parent
a58567004b
commit
ab00794343
@ -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}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user