mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 15:47:39 +03:00
Fix format
This commit is contained in:
parent
a89a33b595
commit
5cd56af350
@ -71,9 +71,7 @@ void OpdsParser::finish() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OpdsParser::error() const {
|
bool OpdsParser::error() const { return errorOccured; }
|
||||||
return errorOccured;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OpdsParser::clear() {
|
void OpdsParser::clear() {
|
||||||
entries.clear();
|
entries.clear();
|
||||||
|
|||||||
@ -2,18 +2,11 @@
|
|||||||
|
|
||||||
OpdsParserStream::OpdsParserStream(OpdsParser& parser) : parser(parser) {}
|
OpdsParserStream::OpdsParserStream(OpdsParser& parser) : parser(parser) {}
|
||||||
|
|
||||||
|
int OpdsParserStream::available() { return 0; }
|
||||||
|
|
||||||
int OpdsParserStream::available() {
|
int OpdsParserStream::peek() { abort(); }
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int OpdsParserStream::peek() {
|
int OpdsParserStream::read() { abort(); }
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
int OpdsParserStream::read() {
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t OpdsParserStream::write(uint8_t c) {
|
size_t OpdsParserStream::write(uint8_t c) {
|
||||||
parser.push(reinterpret_cast<const char*>(&c), 1);
|
parser.push(reinterpret_cast<const char*>(&c), 1);
|
||||||
@ -25,6 +18,4 @@ size_t OpdsParserStream::write(const uint8_t *buffer, size_t size) {
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
OpdsParserStream::~OpdsParserStream() {
|
OpdsParserStream::~OpdsParserStream() { parser.finish(); }
|
||||||
parser.finish();
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "OpdsParser.h"
|
|
||||||
|
|
||||||
#include <Stream.h>
|
#include <Stream.h>
|
||||||
|
|
||||||
|
#include "OpdsParser.h"
|
||||||
|
|
||||||
class OpdsParserStream : public Stream {
|
class OpdsParserStream : public Stream {
|
||||||
public:
|
public:
|
||||||
explicit OpdsParserStream(OpdsParser& parser);
|
explicit OpdsParserStream(OpdsParser& parser);
|
||||||
|
|||||||
@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
#include <GfxRenderer.h>
|
#include <GfxRenderer.h>
|
||||||
#include <HardwareSerial.h>
|
#include <HardwareSerial.h>
|
||||||
#include <WiFi.h>
|
|
||||||
|
|
||||||
#include <OpdsStream.h>
|
#include <OpdsStream.h>
|
||||||
|
#include <WiFi.h>
|
||||||
|
|
||||||
#include "CrossPointSettings.h"
|
#include "CrossPointSettings.h"
|
||||||
#include "MappedInputManager.h"
|
#include "MappedInputManager.h"
|
||||||
@ -278,7 +277,6 @@ void OpdsBookBrowserActivity::fetchFeed(const std::string& path) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (parser.error()) {
|
if (parser.error()) {
|
||||||
state = BrowserState::ERROR;
|
state = BrowserState::ERROR;
|
||||||
errorMessage = "Failed to parse feed";
|
errorMessage = "Failed to parse feed";
|
||||||
|
|||||||
@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
#include <HTTPClient.h>
|
#include <HTTPClient.h>
|
||||||
#include <HardwareSerial.h>
|
#include <HardwareSerial.h>
|
||||||
|
#include <StreamString.h>
|
||||||
#include <WiFiClient.h>
|
#include <WiFiClient.h>
|
||||||
#include <WiFiClientSecure.h>
|
#include <WiFiClientSecure.h>
|
||||||
|
|
||||||
#include <StreamString.h>
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "util/UrlUtils.h"
|
#include "util/UrlUtils.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user