From 7a49e1b5a30d02aaa1011e641384a1d19d715d76 Mon Sep 17 00:00:00 2001 From: Jonathan Hudson Date: Thu, 5 Oct 2023 11:11:19 +0100 Subject: [PATCH] [allocation script] handle both 7.0 and earlier releases --- assets/parse_targets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/parse_targets.rb b/assets/parse_targets.rb index d38367b..af528e9 100755 --- a/assets/parse_targets.rb +++ b/assets/parse_targets.rb @@ -13,7 +13,7 @@ def parse_output lines,name pwms=[] n = 0 lines.each do |l| - if l.match(/T.._USE_(MOTOR|SERVO|OUTPUT)/) + if l.match(/T.._USE_((..)*MOTOR|(..)*SERVO|OUTPUT)/) deftims = l.split(',') alloc = deftims[3] allocs = alloc.split('|').collect{|z| z.strip.gsub(/T.._USE_/,'')} -- 2.11.4.GIT