diff options
author | VanessaE <vanessaezekowitz@gmail.com> | 2012-08-24 21:33:45 -0700 |
---|---|---|
committer | VanessaE <vanessaezekowitz@gmail.com> | 2012-08-24 21:33:45 -0700 |
commit | 950ecbc40782228087b6305f429e27a1963e54ed (patch) | |
tree | 1da8a5ee31a288df970ec2e63f421b53fc560939 | |
parent | 86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63 (diff) | |
parent | 9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c (diff) | |
download | mesecons-950ecbc40782228087b6305f429e27a1963e54ed.tar mesecons-950ecbc40782228087b6305f429e27a1963e54ed.tar.gz mesecons-950ecbc40782228087b6305f429e27a1963e54ed.tar.bz2 mesecons-950ecbc40782228087b6305f429e27a1963e54ed.tar.xz mesecons-950ecbc40782228087b6305f429e27a1963e54ed.zip |
Merge pull request #32 from khonkhortisan/master
pressing enter will reprogram the µC instead of acting like escape
-rw-r--r-- | mesecons_microcontroller/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index f531853..984606d 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -73,7 +73,7 @@ minetest.register_node(nodename, { fields.code = "if(A)sbi(1,1); if(!A&B)off(B)sbi(1,0); if(!A&!B)on(B)sbi(1,0); :A is input, B is output (Q), toggles with falling edge" 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)" - elseif fields.program then --nothing + elseif fields.program or fields.code then --nothing else return nil end meta:set_string("code", fields.code) |