Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 20, 2014
  1. @lazyatom

    Use latest version of Bounce Arduino library.

    lazyatom authored
    The instructions don't mention downloading any particular version;
    this will be less confusing for people, hopefully.
Commits on Nov 6, 2013
  1. @lazyatom
Commits on Jul 22, 2012
  1. @lazyatom

    Bump the sketch version.

    lazyatom authored
  2. @lazyatom

    Move the delay which clarifies error flashing to a clearer place.

    lazyatom authored
    This delay is to separate the error flashes from the startup flash,
    so lets keep it with the startup flashes.
  3. @lazyatom

    Save 14 bytes by avoiding a for loop.

    lazyatom authored
    The code is slightly less clear, but every byte counts.
  4. @lazyatom
  5. @lazyatom
  6. @lazyatom

    Use a positive condition.

    lazyatom authored
Commits on Jun 7, 2012
  1. @lazyatom

    Bump sketch version.

    lazyatom authored
    This should reflect the new 'flush' fix.
  2. @lazyatom

    Flushing the buffer seems to avoid the issue! Huzzah!

    lazyatom authored
    Thanks to @techbelly for the nudges in the right direction. Our best guess is
    that this might be a buffer issue in the Ethernet library.
  3. @lazyatom
  4. @lazyatom

    Remove the version header as it was causing errors.

    lazyatom authored
    When the version header was present, the Arduino would download data, but then
    fail because the cache size (the file on the SD) was apparently zero length. I
    tried this with other dummy headers, and basically any other header seemed to
    screw up the Arduino cache.
    
    Why sending another header would affect the behaviour of the downloading, or
    the SD card, I have absolutely no idea :(
    
    I've tried making the requests locally via curl, but the responses are completely identical, even down to a binary diff.
  5. @lazyatom

    Use a more generic fake MAC.

    lazyatom authored
    ... rather than the one on one of my Arduinos.
  6. @lazyatom

    Enable debug by default.

    lazyatom authored
    It's just more convenient right now.
  7. @lazyatom

    Minor sketch tweaks.

    lazyatom authored
    These come from an exploratory branch trying to figure out why the
    version header causes system errors when downloading.
Commits on May 31, 2012
  1. @lazyatom

    Printers should report their software version.

    lazyatom authored
    This should allow us to prompt people to upgrade when there are bug fixes
    (like the fix for #12) and so on.
  2. @lazyatom

    Disable debugging again.

    lazyatom authored
    Sketch size without debugging is 27444 bytes.
  3. @lazyatom

    Improve robustness of status code checking.

    lazyatom authored
    On the second request, checking the status code would fail. This seems to work
    much better.
    
    I've also restructured the end of the download loop to be clearer and simpler
    in terms of the error cases and behaviour.
  4. @lazyatom

    Add a shedload of commenting.

    lazyatom authored
  5. @lazyatom

    Reduce sketch size from to 29210 to 28934.

    lazyatom authored
    We can remove the duplication between the `debug` function and the `debug2`
    macro too.
  6. @lazyatom

    Reduce sketch size from 31138 to 29210 bytes.

    lazyatom authored
    We don't need the duration, since it can be calculated manually if that's
    important.
    
    Since the `debug` macro was always called with a string, making it a function
    reduces the number of distinct calls to `millis()` and the other functions
    within it.
  7. @lazyatom
  8. @lazyatom
Commits on Apr 21, 2012
  1. @lazyatom
Commits on Apr 11, 2012
  1. @lazyatom

    More debugging around clearing the cache.

    lazyatom authored
    We've seen problems removing the file from the SD card, although it could be the SD card filesystem - I haven't been able to check yet.
  2. @lazyatom

    Close the cache even if the request wasn't successful.

    lazyatom authored
    We did open it, after all.
Commits on Apr 10, 2012
  1. @lazyatom
Commits on Apr 7, 2012
  1. @lazyatom

    Randomly generate an ID on first boot.

    lazyatom authored
    This will make it a bit simpler for other people to use the sketch, but it does make it harder to find out what your printer URL is. I'll address that soon.
  2. @lazyatom

    Switch to using a raw print format.

    lazyatom authored
    The server now sends raw print commands which the Arduino forwards directly to the printer. This should allow a reduction of the sketch size (now 26864); further reductions might be possible by using the hardware serial port, although this will prevent debugging.
Commits on Apr 6, 2012
  1. @lazyatom

    Use an Accept header to indiate what kind of data we want.

    lazyatom authored
    This should let the server do two things:
    
    1) Support different printers
    2) Support different modes on printers (text vs bitmap; raw byte stream vs bitmap image to be parsed.
  2. @lazyatom

    Remove debug IP addresses.

    lazyatom authored
Commits on Mar 29, 2012
  1. @lazyatom

    Choose a less sensitive name.

    lazyatom authored
Something went wrong with that request. Please try again.