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:
Axel Dörfler 2005-02-02 03:01:39 +00:00
parent 21bdfb9cf9
commit 5042346db6

View File

@ -1,7 +1,7 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
* Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "serial.h"
@ -13,6 +13,10 @@
#include <string.h>
//#define ENABLE_SERIAL
// define this to always enable serial output
enum serial_register_offsets {
SERIAL_TRANSMIT_BUFFER = 0,
SERIAL_RECEIVE_BUFFER = 0,
@ -65,7 +69,7 @@ serial_puts(const char *string, size_t size)
extern "C" void
serial_disable(void)
{
#if ENABLE_SERIAL
#ifdef ENABLE_SERIAL
sSerialEnabled = 0;
#else
sSerialEnabled--;