From 4fade5c3fe690d9dca88166e39dc08b65529d756 Mon Sep 17 00:00:00 2001 From: Mike C Date: Sun, 10 Mar 2013 16:56:25 -0400 Subject: [PATCH] Added print of hilight for line speed --- Universal_Serial_Adapter/Project.h | 9 +------ .../Universal_Serial_Adapter.ino | 24 +++++++++++++++++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/Universal_Serial_Adapter/Project.h b/Universal_Serial_Adapter/Project.h index df9d8de..9ef4762 100644 --- a/Universal_Serial_Adapter/Project.h +++ b/Universal_Serial_Adapter/Project.h @@ -46,6 +46,7 @@ enum serialmode { db9_norm, db9_null, cisco, + modelinespeed, none=-1 }; @@ -164,14 +165,6 @@ void printTx(bool show) { lcd.setLine(rtXPosStart, rtYPosStart, rtXPosEnd, rtYPosEnd, color); } -void printLineSpeed(linespeed aLineSpeed) { - int xPos = xLoc(6); - int yPos = yLoc(5); - - lcd.setStr(" ", xPos, yPos, BACKGROUND, BACKGROUND); - lcd.setStr(linespeeds[aLineSpeed].description, xPos, yPos, TEXT, BACKGROUND); -} - void printMode(serialmode aMode) { lcd.setStr(modeToText[aMode], xLoc(aMode), yLoc(1), TEXT, BACKGROUND); } diff --git a/Universal_Serial_Adapter/Universal_Serial_Adapter.ino b/Universal_Serial_Adapter/Universal_Serial_Adapter.ino index a6870b6..d1a2f9d 100644 --- a/Universal_Serial_Adapter/Universal_Serial_Adapter.ino +++ b/Universal_Serial_Adapter/Universal_Serial_Adapter.ino @@ -42,7 +42,7 @@ void setup() { // Print the modes // Uses enum trickery -- don't assign values to serialmode enum values - for (int i=0; i<=cisco; i++) { + for (int i=0; i