Cli fixes

This commit is contained in:
Bertrand Songis
2015-08-11 22:06:30 +02:00
parent 6356fbb2f4
commit 17cb8f9459
6 changed files with 17 additions and 27 deletions
-21
View File
@@ -40,24 +40,6 @@ uint8_t currentSpeakerVolume = 255;
uint8_t requiredSpeakerVolume = 255;
uint8_t requestScreenshot = false;
#if defined(USB_SERIAL)
Fifo<64> cliRxFifo;
void handleCli()
{
uint8_t c;
while(cliRxFifo.pop(c)) {
//send back
usbSerialPutc(c);
usbSerialPutc('+');
}
}
#endif
void handleUsbConnection()
{
#if defined(PCBTARANIS) && !defined(SIMU)
@@ -129,9 +111,6 @@ void perMain()
handleUsbConnection();
checkTrainerSettings();
checkBattery();
#if defined(USB_SERIAL)
handleCli();
#endif
uint8_t evt = getEvent(false);
if (evt && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) backlightOn(); // on keypress turn the light on