up sockets outputs

This commit is contained in:
Tykayn 2023-10-01 13:30:14 +02:00 committed by tykayn
parent 1431cd7af6
commit f35b87dab7
2 changed files with 6 additions and 4 deletions

View File

@ -323,6 +323,11 @@ export default class {
if (we_use_max_output) { if (we_use_max_output) {
newProperties['socket:max:output'] = out; newProperties['socket:max:output'] = out;
} else { } else {
if (has_prise_type_2 && prise_type_e) {
newProperties['socket:type_2:output'] = out;
console.log('2 prises, attribuer la plus haute valeur à la type 2', out)
}
if (countOfSockets === 1) { if (countOfSockets === 1) {
if (has_prise_type_2) { if (has_prise_type_2) {
@ -339,9 +344,6 @@ export default class {
if (prise_type_e) { if (prise_type_e) {
newProperties['socket:typee:output'] = out; newProperties['socket:typee:output'] = out;
} }
} else if (has_prise_type_2 && prise_type_e) {
newProperties['socket:type_2:output'] = out;
console.log('2 prises, attribuer la plus haute valeur à la type 2', out)
} else { } else {
console.log('no sockets', this.current_geojson_point.properties.ref) console.log('no sockets', this.current_geojson_point.properties.ref)
// console.log('sockets', countOfSockets, this.current_geojson_point.properties) // console.log('sockets', countOfSockets, this.current_geojson_point.properties)

File diff suppressed because one or more lines are too long