/* Hardware Initialization */\r
SerialStream_Init(9600, false);\r
LEDs_Init();\r
- HWB_Init();\r
+ Buttons_Init();\r
\r
/* Indicate USB not ready */\r
UpdateStatus(Status_USBNotReady);\r
puts_P(PSTR("\r\n"));\r
}\r
\r
- puts_P(PSTR("\r\n\r\nPress HWB to read entire ASCII contents of disk...\r\n\r\n"));\r
+ puts_P(PSTR("\r\n\r\nPress board button to read entire ASCII contents of disk...\r\n\r\n"));\r
\r
- /* Wait for HWB to be pressed */\r
- while (!(HWB_GetStatus()))\r
+ /* Wait for the board button to be pressed */\r
+ while (!(Buttons_GetStatus() & BUTTONS_BUTTON1))\r
{\r
/* Abort if device removed */\r
if (!(USB_IsConnected))\r
*/\r
void ShowDiskReadError(char* CommandString, bool FailedAtSCSILayer, uint8_t ErrorCode)\r
{\r
- if (CommandFailed)\r
+ if (FailedAtSCSILayer)\r
{\r
/* Display the error code */\r
printf_P(PSTR(ESC_BG_RED "SCSI command error (%S).\r\n"), CommandString);\r