fix flux pluslora

pull/464/head
hako-mikan 2025-01-24 01:18:47 +09:00
parent 907a970912
commit ae4a592bd2
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ BLOCKID26=["BASE","IN00","IN01","IN02","IN03","IN04","IN05","IN06","IN07","IN08"
BLOCKID17=["BASE","IN01","IN02","IN04","IN05","IN07","IN08","M00","OUT03","OUT04","OUT05","OUT06","OUT07","OUT08","OUT09","OUT10","OUT11"]
BLOCKID12=["BASE","IN04","IN05","IN07","IN08","M00","OUT00","OUT01","OUT02","OUT03","OUT04","OUT05"]
BLOCKID20=["BASE","IN00","IN01","IN02","IN03","IN04","IN05","IN06","IN07","IN08","M00","OUT00","OUT01","OUT02","OUT03","OUT04","OUT05","OUT06","OUT07","OUT08"]
BLOCKNUMS = [12,17,20,26]
BLOCKNUMS = [12,17,20,26,61]
BLOCKIDS=[BLOCKID12,BLOCKID17,BLOCKID20,BLOCKID26]
def to26(ratios):
if len(ratios) == 26: return ratios
if len(ratios) == 26 or len(ratios) > 40 : return ratios
ids = BLOCKIDS[BLOCKNUMS.index(len(ratios))]
output = [0]*26
for i, id in enumerate(ids):