Add a way to bypass the ACS outage messages so it works again
authorRobert Sesek <rsesek@bluestatic.org>
Fri, 28 Mar 2008 21:31:42 +0000 (17:31 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Fri, 28 Mar 2008 21:31:42 +0000 (17:31 -0400)
* Source/AppController.m:
([AppController uploadAndPrint:]): Send the "q" character to postpone displaying messages

Source/AppController.m

index 6959a3be332e2fe597f225c3fa1309c417b1775b..000cb72d7c3b9b54d3b166b9a76a0f3598708805 100644 (file)
@@ -247,6 +247,11 @@ end:
        // read the banner
        [self readChannel:channel];
        
+       // f!cking ACS messages --> skip some more
+       char *delay = "q\r\n\0";
+       libssh2_channel_write(channel, delay, sizeof(char) * strlen(delay));
+       [self readChannel:channel];
+       
        // send the job to lpr
        char *cmd;
 #ifndef BLU_DEBUG