Support KLE to PCB metadata and nets

This commit is contained in:
Bán Dénes 2021-07-16 14:31:07 +02:00
parent cd0ae6d38b
commit f955aac994
2 changed files with 40 additions and 7 deletions

View file

@ -9,9 +9,15 @@ const pcbs_lib = require('./pcbs')
const process = async (raw, debug=false, logger=()=>{}) => {
const prefix = 'Interpreting format: '
let empty = true
let [config, format] = io.interpret(raw, logger)
logger('Interpreting format: ' + format)
let suffix = format
if (format == 'KLE') {
suffix = `${format} (Auto-debug)`
debug = true
}
logger(prefix + suffix)
logger('Preprocessing input...')
config = prepare.unnest(config)