Merge pull request #15 from mist-01/master

Add option to kick drawer at the start of the print
This commit is contained in:
plinth666 2018-07-26 06:58:38 -04:00 committed by GitHub
commit b1b412531e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.swp

View file

@ -208,6 +208,7 @@
*DefaultCashDrawerType: 0DoNothing
*CashDrawerType 0DoNothing/Do Nothing: ""
*CashDrawerType 1OpenDrawer/Open After Document: ""
*CashDrawerType 2OpenDrawerBefore/Open Before Document: ""
*CloseUI: *CashDrawerType
*CloseGroup: CashDrawerGroup

View file

@ -333,6 +333,9 @@ inline void initializeSettings(char * commandLineOptionSettings, struct settings
void jobSetup(struct settings_ settings)
{
outputCommand(printerInitializeCommand);
if (settings.drawerKick == 2){
outputCommand(drawerKickCommand);
}
}
void pageSetup(struct settings_ settings, cups_page_header_t header)
@ -353,7 +356,7 @@ void endJob(struct settings_ settings)
{
outputCommand(pageCutCommand);
}
if (settings.drawerKick)
if (settings.drawerKick == 1)
{
outputCommand(drawerKickCommand);
}