Maschinen/CraftRobo: changes_roh_patch_cc330.diff

File changes_roh_patch_cc330.diff, 905 bytes (added by roh, 13 years ago)

patch to add CC330 to Robocut

  • Plotter.cpp

    diff --git a/Plotter.cpp b/Plotter.cpp
    index 670a545..0ba83d9 100755
    a b  
    55const int VENDOR_ID_GRAPHTEC = 0x0b4d;
    66const int PRODUCT_ID_CC200_20 = 0x110a;
    77const int PRODUCT_ID_SILHOUETTE_SD = 0x111d; // Possibly the same as CC330-20.
     8const int PRODUCT_ID_CC330 = 0x111c;
    89
    910#include <iostream>
    1011#include <cmath>
    Error Cut(QList<QPolygonF> cuts, double mediawidth, double mediaheight, int medi 
    136137                libusb_get_device_descriptor(device, &desc);
    137138                // I don't want to be more specific than this really.
    138139                if (desc.idVendor == VENDOR_ID_GRAPHTEC &&
    139                                 (desc.idProduct == PRODUCT_ID_CC200_20 || desc.idProduct == PRODUCT_ID_SILHOUETTE_SD))
     140                                (desc.idProduct == PRODUCT_ID_CC200_20 || desc.idProduct == PRODUCT_ID_SILHOUETTE_SD || desc.idProduct == PRODUCT_ID_CC330))
    140141                {
    141142                        // Just use the first one. Who has two?!
    142143                        found = device;