Fixed broken conditional ENABLE_SERIAL handling.
Also added a comment about what ENABLE_SERIAL is for. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11195 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the Haiku License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
@@ -13,6 +13,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
//#define ENABLE_SERIAL
|
||||||
|
// define this to always enable serial output
|
||||||
|
|
||||||
|
|
||||||
enum serial_register_offsets {
|
enum serial_register_offsets {
|
||||||
SERIAL_TRANSMIT_BUFFER = 0,
|
SERIAL_TRANSMIT_BUFFER = 0,
|
||||||
SERIAL_RECEIVE_BUFFER = 0,
|
SERIAL_RECEIVE_BUFFER = 0,
|
||||||
@@ -65,7 +69,7 @@ serial_puts(const char *string, size_t size)
|
|||||||
extern "C" void
|
extern "C" void
|
||||||
serial_disable(void)
|
serial_disable(void)
|
||||||
{
|
{
|
||||||
#if ENABLE_SERIAL
|
#ifdef ENABLE_SERIAL
|
||||||
sSerialEnabled = 0;
|
sSerialEnabled = 0;
|
||||||
#else
|
#else
|
||||||
sSerialEnabled--;
|
sSerialEnabled--;
|
||||||
|
|||||||
Reference in New Issue
Block a user