#include "LCD.h"
#endif
-int usbattached = 0;
//=============================================================================
// A buffer where we can queue things up to be sent through the FPGA, for
void DbpString(char *str)
{
/* this holds up stuff unless we're connected to usb */
-// if (!usbattached)
-// return;
+ if (!UsbConnected())
+ return;
UsbCommand c;
c.cmd = CMD_DEBUG_PRINT_STRING;
void DbpIntegers(int x1, int x2, int x3)
{
/* this holds up stuff unless we're connected to usb */
-// if (!usbattached)
-// return;
+ if (!UsbConnected())
+ return;
UsbCommand c;
c.cmd = CMD_DEBUG_PRINT_INTEGERS;
for (;;)
{
- usbattached = UsbPoll(FALSE);
+ UsbPoll(FALSE);
WDT_HIT();
// Was our button held down or pressed?
#endif
for(;;) {
- usbattached = UsbPoll(FALSE);
+ UsbPoll(FALSE);
WDT_HIT();
if (BUTTON_HELD(1000) > 0)