protected:
BaseSerial *s;
const char *image;
+ const int CHUNKSIZE;
enum commands_t {
MASS_ERASE = 0x18,
int highSpeed(int *err);
public:
- Bsl(BaseSerial* ser, const char *img) : s(ser), image(img) {
+ Bsl(BaseSerial* ser, const char *img, int cs=250) : s(ser), image(img), CHUNKSIZE(cs) {
};
~Bsl() {