When downloading a book via OPDS, the last acquisition link is chosen when there are multiple. This allows choosing which format to download when there are many. Having only one format will automatically download that.
16 lines
314 B
C++
16 lines
314 B
C++
#pragma once
|
|
|
|
#include "Print.h"
|
|
|
|
class HWCDC : public Print {
|
|
public:
|
|
void begin(unsigned long) {}
|
|
operator bool() const { return true; }
|
|
|
|
size_t write(uint8_t) override { return 1; }
|
|
size_t write(const uint8_t*, size_t size) override { return size; }
|
|
void flush() override {}
|
|
};
|
|
|
|
inline HWCDC Serial;
|