ESP32 compile fixes

This commit is contained in:
folkert van heusden 2022-03-31 22:23:50 +02:00
parent 5064c8e1ec
commit 76bd1ea50a
3 changed files with 10 additions and 4 deletions

View file

@ -25,9 +25,9 @@ console_esp32::~console_esp32()
}
}
int console_esp32::wait_for_char(const int timeout)
int console_esp32::wait_for_char(const short timeout)
{
for(int i=0; i<timeout / 10; i++) {
for(short i=0; i<timeout / 10; i++) {
if (Serial.available())
return Serial.read();
@ -46,6 +46,10 @@ void console_esp32::resize_terminal()
{
}
void console_esp32::refresh_virtual_terminal()
{
}
void console_esp32::panel_update_thread()
{
Serial.println(F("panel task started"));

View file

@ -6,7 +6,7 @@
class console_esp32 : public console
{
protected:
int wait_for_char(const int timeout) override;
int wait_for_char(const short timeout) override;
void put_char_ll(const char c) override;
@ -16,5 +16,7 @@ public:
void resize_terminal() override;
void refresh_virtual_terminal() override;
void panel_update_thread() override;
};

View file

@ -160,7 +160,7 @@ void setup() {
// setup_wifi_stations();
Serial.println(F("Load RK05"));
b->add_rk05(new rk05("", b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
b->add_rk05(new rk05({ }, b, cnsl->get_disk_read_activity_flag(), cnsl->get_disk_write_activity_flag()));
setBootLoader(b);
Serial.print(F("Free RAM after init: "));