Minor bits

This commit is contained in:
Jasmine Iwanek
2022-09-18 19:51:57 -04:00
parent fd8c92d5d9
commit dcf0c94f7e
2 changed files with 9 additions and 9 deletions

View File

@@ -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
}

View File

@@ -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;