Skip to content

Instantly share code, notes, and snippets.

@m0wfo
Created February 4, 2013 21:53
Show Gist options
  • Save m0wfo/4710049 to your computer and use it in GitHub Desktop.
Save m0wfo/4710049 to your computer and use it in GitHub Desktop.
diff --git a/backend/pixma_mp730.c b/backend/pixma_mp730.c
index 5987739..1b0073b 100644
--- a/backend/pixma_mp730.c
+++ b/backend/pixma_mp730.c
@@ -78,6 +78,7 @@
#define MF5750_PID 0x265e /* Untested */
#define MF5770_PID 0x265f
#define MF3110_PID 0x2660
+#define MF3010_PID 0x2759 // :)
#define IR1020_PID 0x26e6
@@ -323,6 +324,7 @@ handle_interrupt (pixma_t * s, int timeout)
case MF5750_PID:
case MF5770_PID:
case MF3110_PID:
+ case MF3010_PID:
case IR1020_PID:
if (len != 16)
{
@@ -691,6 +693,7 @@ mp730_fill_buffer (pixma_t * s, pixma_imagebuf_t * ib)
s->cfg->pid != MF5750_PID &&
s->cfg->pid != MF5770_PID &&
s->cfg->pid != MF3110_PID &&
+ s->cfg->pid != MF3010_PID &&
s->cfg->pid != IR1020_PID)
{
/* color, and not an MF57x0 nor MF3110 */
@@ -819,7 +822,8 @@ const pixma_config_t pixma_mp730_devices[] = {
DEVICE ("Canon imageCLASS MF5730", "MF5730", MF5730_PID, 1200, 636, 868, PIXMA_CAP_ADF),
DEVICE ("Canon imageCLASS MF5750", "MF5750", MF5750_PID, 1200, 636, 868, PIXMA_CAP_ADF),
DEVICE ("Canon imageCLASS MF5770", "MF5770", MF5770_PID, 1200, 636, 868, PIXMA_CAP_ADF),
- DEVICE ("Canon imageCLASS MF3110", "MF3110", MF3110_PID, 600, 636, 868, 0),
+ DEVICE ("Canon imageCLASS MF3110", "MF3110", MF3110_PID, 600, 636, 600, 0),
+ DEVICE ("Canon imageClass MF3010", "MF3010", MF3010_PID, 600, 636, 868, 0), // :)
DEVICE ("Canon iR 1020/1024/1025", "iR1020", IR1020_PID, 600, 636, 868, PIXMA_CAP_ADFDUP),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment