Global array declaraion failing
-
Hello all,
I running into an issue with not being able to create global arrays. If I put the declaration "global testarray = {255,255,255}" in a macro and attempt to set to it I get "Error: unknown variable 'global.testarray' of xx.g" when I run the macro. If I declare the array in Duet Web Control I get the error "global testarray = {255,255,255} Error: {255,255,255}expected '}' ". Basic variables work fine. I can't find what could be causing this.
I am running:
Duet Web Control 3.4.6
Board: Duet 3 MB6HC (MB6HC)
DSF Version: 3.4.6
Firmware: RepRapFirmware for Duet 3 MB6HC 3.4.4+1 (2022-11-15)TIA -John
-
@Johnnyg Array-valued variables are supported from RRF 3.5 onwards, so you'd need to upgrade to 3.5rc3.
(also your board firmware version doesn't match DSF and DWC)
-
@oliof Thank you, that was it - missed that in the docs