mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	exposable serialConfig
This commit is contained in:
		| @@ -256,7 +256,12 @@ module.exports = function(RED) { | |||||||
|                     }); |                     }); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             node.send({payload: node.serialConfig}); |             let currentConfig = {}; | ||||||
|  |             configProps.map((p) => { | ||||||
|  |                 currentConfig[p] = node.serialConfig[p]; | ||||||
|  |             }); | ||||||
|  |             currentConfig.enable = node.serialConfig.enable; | ||||||
|  |             node.send({payload: currentConfig}); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|     RED.nodes.registerType("serial control", PortSelectNode); |     RED.nodes.registerType("serial control", PortSelectNode); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user