|
@@ -410,7 +410,8 @@ implementation
|
|
|
{ CPU targets with microcontroller support can add a controller specific unit }
|
|
|
if ControllerSupport and (target_info.system in (systems_embedded+systems_freertos)) and
|
|
|
(current_settings.controllertype<>ct_none) and
|
|
|
- (embedded_controllers[current_settings.controllertype].controllerunitstr<>'') then
|
|
|
+ (embedded_controllers[current_settings.controllertype].controllerunitstr<>'') and
|
|
|
+ (embedded_controllers[current_settings.controllertype].controllerunitstr<>current_module.modulename^) then
|
|
|
AddUnit(embedded_controllers[current_settings.controllertype].controllerunitstr);
|
|
|
{$pop}
|
|
|
{$ifdef XTENSA}
|