% % check for messages to be received, see if device % is still in non-partner mode % *machchky _Msg.Status _Devc.Handshake and nonzero { % % device is now handshaking % check for have partner % ind( % % send the partner command to move it to final part of handshake % *machprtn "Upload:Gcode;Bright" ind@ "Download:Gcode;Bright" ind@ "Status:Outgoing;Dim" ind@ ind) } { % % check for have partner % _Msg.Status _Devc.HavePartner and nonzero { ind( "Upload:Gcode;On" ind@ "Download:Gcode;On" ind@ "Status:Outgoing;On" ind@ "Configed" false -1 -1 *machisat ind) % % have the partner give any updated ip for contact % *machprta } { } ifelse } ifelse