Skip to content

Commit 3f899fe

Browse files
committed
Fix merge problems
1 parent ef2905e commit 3f899fe

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

lib/http/httpServiceConfigurator.cpp

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
#include "utils.h"
1313

14-
#ifdef BUILD_ATARI
15-
#include "sio/sioFuji.h"
16-
#endif /* BUILD_ATARI */
1714

1815
#ifdef BUILD_APPLE
1916
#include "iwm/printerlist.h"
17+
#include "iwm/fuji.h"
2018
#define PRINTER_CLASS iwmPrinter
19+
extern iwmFuji theFuji;
2120
#endif /* BUILD_APPLE */
2221

2322
bool udpactivate = false;
@@ -285,7 +284,7 @@ void fnHttpServiceConfigurator::config_cassette_play(std::string play_record)
285284
// find cassette via thefuji object?
286285
Debug_printf("New play/record button value: %s\n", play_record.c_str());
287286
bool isRecord = util_string_value_is_true(play_record);
288-
platformFuji.cassette()->set_buttons(isRecord);
287+
theFuji.cassette()->set_buttons(isRecord);
289288
Config.store_cassette_buttons(isRecord);
290289

291290
Config.save();
@@ -296,7 +295,7 @@ void fnHttpServiceConfigurator::config_cassette_resistor(std::string resistor)
296295
{
297296
#ifdef BUILD_ATARI
298297
bool isPullDown = util_string_value_is_true(resistor);
299-
platformFuji.cassette()->set_pulldown(isPullDown);
298+
theFuji.cassette()->set_pulldown(isPullDown);
300299
Config.store_cassette_pulldown(isPullDown);
301300

302301
Config.save();
@@ -560,20 +559,19 @@ void fnHttpServiceConfigurator::config_serial(std::string port, std::string baud
560559
}
561560

562561
#elif defined(BUILD_COCO)
563-
#ifdef NOT_SUBCLASS
564-
if (_bus.get_drivewire_mode() == DwCom::dw_mode::SERIAL)
562+
if (fnDwCom.get_drivewire_mode() == DwCom::dw_mode::SERIAL)
565563
{
566-
_bus.end();
564+
fnDwCom.end();
567565
}
568566

569-
_bus.set_serial_port(Config.get_serial_port().c_str());
567+
fnDwCom.set_serial_port(Config.get_serial_port().c_str());
570568

571-
if (_bus.get_drivewire_mode() == DwCom::dw_mode::SERIAL)
569+
if (fnDwCom.get_drivewire_mode() == DwCom::dw_mode::SERIAL)
572570
{
573-
_bus.begin(Config.get_serial_baud());
571+
fnDwCom.begin(Config.get_serial_baud());
574572
}
575573
#endif
576-
#endif /* NOT_SUBCLASS */
574+
#endif /* UNUSED */
577575
}
578576
}
579577
#elif defined(BUILD_RS232)
@@ -617,12 +615,8 @@ void fnHttpServiceConfigurator::config_boip(std::string enable_boip, std::string
617615

618616
// Update settings (on ESP reboot is needed)
619617
#ifndef ESP_PLATFORM
620-
#if defined(BUILD_ATARI)
621-
SYSTEM_BUS.set_netsio_host(Config.get_boip_host().c_str(), Config.get_boip_port());
622-
#elif defined(BUILD_COCO)
623-
#ifdef NOT_SUBCLASS
624-
_bus.set_becker_host(Config.get_boip_host().c_str(), Config.get_boip_port());
625-
#endif /* NOT_SUBCLASS */
618+
#if defined(BUILD_ATARI) || defined(BUILD_COCO)
619+
SYSTEM_BUS.setHost(Config.get_boip_host().c_str(), Config.get_boip_port());
626620
#endif
627621
#endif
628622

@@ -633,12 +627,8 @@ void fnHttpServiceConfigurator::config_boip(std::string enable_boip, std::string
633627

634628
// Apply settings (on ESP reboot is needed)
635629
#ifndef ESP_PLATFORM
636-
#if defined(BUILD_ATARI)
637-
SYSTEM_BUS.reset_sio_port(Config.get_boip_enabled() ? SioCom::sio_mode::NETSIO : SioCom::sio_mode::SERIAL);
638-
#elif defined(BUILD_COCO)
639-
#ifdef NOT_SUBCLASS
640-
_bus.reset_drivewire_port(Config.get_boip_enabled() ? DwCom::dw_mode::BECKER : DwCom::dw_mode::SERIAL);
641-
#endif /* NOT_SUBCLASS */
630+
#if defined(BUILD_ATARI) || defined(BUILD_COCO)
631+
SYSTEM_BUS.selectSerialPort(Config.get_boip_enabled() == 0);
642632
#endif
643633
#endif
644634

lib/http/httpServiceParser.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,6 @@ const string fnHttpServiceParser::substitute_tag(const string &tag)
398398
resultstream << SYSTEM_BUS.getHighSpeedBaud();
399399
break;
400400
#endif /* BUILD_ATARI */
401-
#if defined(BUILD_RS232)
402-
#warning "Why isn't this using Config.get_serial_baud() below?"
403-
case FN_SERIAL_PORT_BAUD:
404-
resultstream << Config.get_rs232_baud();
405-
break;
406-
#endif
407401
#ifndef ESP_PLATFORM
408402
case FN_SERIAL_PORT:
409403
resultstream << Config.get_serial_port();

lib/utils/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ std::string util_entry(std::string crunched, size_t fileSize, bool is_dir, bool
262262
else
263263
{
264264
snprintf(e, sizeof(e),
265-
"%-8s %-3s %10u %2u-%02u-%02u %2u:%02u%c",
265+
"%-8s %-3s %10lu %2u-%02u-%02u %2u:%02u%c",
266266
basename.c_str(),
267267
ext.c_str(),
268268
fileSize,

0 commit comments

Comments
 (0)