Merge pull request #32 from khonkhortisan/master

pressing enter will reprogram the µC instead of acting like escape
This commit is contained in:
VanessaE 2012-08-24 21:33:45 -07:00
commit 950ecbc407

@ -73,7 +73,7 @@ minetest.register_node(nodename, {
fields.code = "if(A)sbi(1,1); if(!A&#1&B)off(B)sbi(1,0); if(!A&#1&!B)on(B)sbi(1,0); :A is input, B is output (Q), toggles with falling edge" fields.code = "if(A)sbi(1,1); if(!A&#1&B)off(B)sbi(1,0); if(!A&#1&!B)on(B)sbi(1,0); :A is input, B is output (Q), toggles with falling edge"
elseif fields.brsflop then elseif fields.brsflop then
fields.code = "if(A)on(C);if(B)off(C); :A is S (Set), B is R (Reset), C is output (R dominates)" fields.code = "if(A)on(C);if(B)off(C); :A is S (Set), B is R (Reset), C is output (R dominates)"
elseif fields.program then --nothing elseif fields.program or fields.code then --nothing
else return nil end else return nil end
meta:set_string("code", fields.code) meta:set_string("code", fields.code)