Skip to content

Commit

Permalink
Fixed default fileID for laser/make
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-fabteam committed Apr 20, 2017
1 parent 7aabfcd commit 00c9fb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function index()
$this->view();
}

public function make($fileID = '')
public function make($fileID = '-1')
{
$this->load->library('smart');
$this->load->helper('form');
Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
},
"plugin_uri": "https://github.com/FABtotum/fab_laser",
"version": "0.10.3",
"version": "0.10.4",
"plugin_slug": "fab_laser",
"filetypes": []
}
9 changes: 8 additions & 1 deletion scripts/py/engrave.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,20 @@ def main():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("-T", "--task-id", help=_("Task ID."), default=0)
parser.add_argument("-F", "--file-name", help=_("File name."), required=True)

parser.add_argument("--lang", help="Output language", default='en_US.UTF-8' )
parser.add_argument("--email", help="Send an email on task finish", action='store_true', default=False)
parser.add_argument("--shutdown", help="Shutdown on task finish", action='store_true', default=False )

# GET ARGUMENTS
args = parser.parse_args()

# INIT VARs
gcode_file = args.file_name # GCODE FILE
task_id = args.task_id
lang = args.lang
send_email = bool(args.email)
auto_shutdown = bool(args.shutdown)

if task_id == 0:
standalone = True
else:
Expand Down

0 comments on commit 00c9fb2

Please sign in to comment.