From dcf0c94f7e03b34fc5d1631ce820560e91cde840 Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Sun, 18 Sep 2022 19:51:57 -0400 Subject: [PATCH] Minor bits --- src/device/serial.c | 14 +++++++------- src/machine/m_at_slot1.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/device/serial.c b/src/device/serial.c index 9214b3326..8b9dc4b59 100644 --- a/src/device/serial.c +++ b/src/device/serial.c @@ -195,13 +195,13 @@ serial_transmit(serial_t *dev, uint8_t val) else if (dev->sd->dev_write) dev->sd->dev_write(dev, dev->sd->priv, val); #ifdef ENABLE_SERIAL_CONSOLE - if ((val >= ' ' && val <= '~') || val == '\r' || val == '\n') { - fputc(val, stdout); - if (val == '\n') - fflush(stdout); - } else { - fprintf(stdout, "[%02X]", val); - } + if ((val >= ' ' && val <= '~') || val == '\r' || val == '\n') { + fputc(val, stdout); + if (val == '\n') + fflush(stdout); + } else { + fprintf(stdout, "[%02X]", val); + } #endif } diff --git a/src/machine/m_at_slot1.c b/src/machine/m_at_slot1.c index 9412e3a76..dab94669a 100644 --- a/src/machine/m_at_slot1.c +++ b/src/machine/m_at_slot1.c @@ -225,7 +225,7 @@ int machine_at_p2bls_coreboot_init(const machine_t *model) { int ret; - + ret = bios_load_linear("roms/machines/p2bls/coreboot.rom", 0x000c0000, 262144, 0); @@ -289,7 +289,7 @@ machine_at_p3bf_init(const machine_t *model) device_add(ics9xxx_get(ICS9250_08)); device_add(&sst_flash_39sf020_device); spd_register(SPD_TYPE_SDRAM, 0xF, 256); - device_add(&as99127f_device); /* fans: Chassis, CPU, Power; temperatures: MB, JTPWR, CPU */ + device_add(&as99127f_device); /* fans: Chassis, CPU, Power; temperatures: MB, JTPWR, CPU */ hwm_values.voltages[4] = hwm_values.voltages[5]; /* +12V reading not in line with other boards; appears to be close to the -12V reading */ return ret;