@@ -114,6 +114,7 @@ function backplane.init(config, __shared_memory)
114114
115115 -- mount a virtual peripheral to init the RPS with
116116 local _ , dev = ppm .mount_virtual ()
117+ --- @diagnostic disable-next-line : assign-type-mismatch
117118 plc_dev .reactor = dev
118119
119120 log .info (" BKPLN: mounted virtual device as reactor" )
156157-- handle a backplane peripheral attach
157158--- @param iface string
158159--- @param type string
159- --- @param device table
160+ --- @param device ppm_generic
160161--- @param print_no_fp function
161162function backplane .attach (iface , type , device , print_no_fp )
162163 local MQ__RPS_CMD = _bp .smem .q_types .MQ__RPS_CMD
@@ -170,6 +171,8 @@ function backplane.attach(iface, type, device, print_no_fp)
170171
171172 if type ~= nil and device ~= nil then
172173 if type == " fissionReactorLogicAdapter" then
174+ --- @cast device FissionReactor
175+
173176 if not state .no_reactor then
174177 log .warning (" BKPLN: !! DANGER !! an additional reactor (" .. iface .. " ) was connected and will not be used!" )
175178 log .warning (multi_reactor_warn )
269272-- handle a backplane peripheral detach
270273--- @param iface string
271274--- @param type string
272- --- @param device table
275+ --- @param device ppm_generic
273276--- @param print_no_fp function
274277function backplane .detach (iface , type , device , print_no_fp )
275278 local MQ__RPS_CMD = _bp .smem .q_types .MQ__RPS_CMD
@@ -281,6 +284,8 @@ function backplane.detach(iface, type, device, print_no_fp)
281284 local sys = _bp .smem .plc_sys
282285
283286 if type == " fissionReactorLogicAdapter" then
287+ --- @cast device FissionReactor
288+
284289 log .info (" BKPLN: REACTOR LINK_DOWN " .. iface )
285290
286291 -- detect and warn about multiple reactors
0 commit comments