Browse Source

Narrow var scopes.

extract-visca-communication-to-class
Ed Walker 5 years ago
parent
commit
c121fb4d13
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      visca_controller/src/visca_controller.cpp

+ 2
- 3
visca_controller/src/visca_controller.cpp View File

@ -45,9 +45,8 @@ void handleHardwareControl() {
void receiveViscaData() {
static byte ndx = 0;
byte rc;
while (viscaOutput.available() > 0) {
rc = viscaOutput.read();
byte rc = viscaOutput.read();
if (rc != 0xFF) {
viscaMessage[ndx] = rc;
@ -165,8 +164,8 @@ void setButtonStatus(uint8_t input, bool status) {
}
void processZoom(int zoom) {
int zoomMaxSpeed = 15;
if (zoom < analogLowThreshold || analogHighThreshold < zoom) {
int zoomMaxSpeed = 15;
uint8_t zoomSpeed;
byte zoomDir;
if (zoom < analogLowThreshold) {


Loading…
Cancel
Save