@@ -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;
+ else
+ begin
+ set_system_compvar('IDF_VERSION','00000');
+ idf_version:=0;
+ 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');