summaryrefslogtreecommitdiff
path: root/mesecons_microcontroller
diff options
context:
space:
mode:
authorKyle <khonkhortisan@gmail.com>2012-08-24 20:59:26 -0700
committerKyle <khonkhortisan@gmail.com>2012-08-24 20:59:26 -0700
commit9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c (patch)
tree1da8a5ee31a288df970ec2e63f421b53fc560939 /mesecons_microcontroller
parent86a588e3ed6fa6e23ae4b5bfcd5905b7c23b3e63 (diff)
downloadmesecons-9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c.tar
mesecons-9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c.tar.gz
mesecons-9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c.tar.bz2
mesecons-9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c.tar.xz
mesecons-9cfb13d60cca687bbfbb4f1eb8738bf4b5730b2c.zip
pressing enter will reprogram the µC instead of acting like escape
Diffstat (limited to 'mesecons_microcontroller')
-rw-r--r--mesecons_microcontroller/init.lua2
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&#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
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)