Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

minor refactor to infrared jam cmd

Geo7a704008ea92
diff --git a/src/Controllers/InfraredController.cpp b/src/Controllers/InfraredController.cpp
index f2d1ffea..a1ba7a3d 100644
--- a/src/Controllers/InfraredController.cpp
+++ b/src/Controllers/InfraredController.cpp
@@ -439,6 +439,9 @@ void InfraredController::handleConfig() {
terminalView.println("Infrared configured.\n");
}
+/*
+Jam
+*/
void InfraredController::handleJam() {
// Mode
std::vector<std::string> modes = infraredService.getJamModeStrings();
@@ -471,7 +474,6 @@ void InfraredController::handleJam() {
infraredService.sendJam(midx, khz, sweepIdx, density);
bursts++;
- delayMicroseconds(100);
}
}
diff --git a/src/Controllers/InfraredController.h b/src/Controllers/InfraredController.h
index b853083b..96af09e6 100644
--- a/src/Controllers/InfraredController.h
+++ b/src/Controllers/InfraredController.h
@@ -60,10 +60,7 @@ private:
// Receive IR commands
void handleReceive();
-
- // Print raw IR frames
- void handleRaw();
-
+
// Send "device-b-gone" style power-off signals
void handleDeviceBgone();