|
1 | | -/* |
| 1 | +/* |
2 | 2 | Copyright 2019 Jan-Eric Schober |
3 | 3 |
|
4 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -209,7 +209,7 @@ void StreamCommander::updateStatus( String status ) |
209 | 209 | if ( !getStatus().equals( status ) ) |
210 | 210 | { |
211 | 211 | setStatus( status ); |
212 | | - |
| 212 | + |
213 | 213 | // Only send a Status-Update if our device is set active |
214 | 214 | if ( isActive() ) |
215 | 215 | { |
@@ -321,20 +321,20 @@ int StreamCommander::getNumCommands() |
321 | 321 | String StreamCommander::getCommandList() |
322 | 322 | { |
323 | 323 | String commandList = ""; |
324 | | - String commandSeperator = ", "; |
| 324 | + String commandSeparator = ", "; |
325 | 325 |
|
326 | 326 | for ( int i = 0; i < getNumCommands(); i++ ) |
327 | 327 | { |
328 | | - commandList = commandList + *(commands[i].command) + commandSeperator; |
| 328 | + commandList = commandList + *(commands[i].command) + commandSeparator; |
329 | 329 | } |
330 | 330 |
|
331 | | - // Remove the last command seperator |
| 331 | + // Remove the last command separator |
332 | 332 | unsigned int listLength = commandList.length(); |
333 | | - unsigned int seperatorLength = commandSeperator.length(); |
| 333 | + unsigned int separatorLength = commandSeparator.length(); |
334 | 334 |
|
335 | 335 | if ( listLength > 0 ) |
336 | 336 | { |
337 | | - commandList.remove( listLength - seperatorLength, seperatorLength ); |
| 337 | + commandList.remove( listLength - separatorLength, separatorLength ); |
338 | 338 | } |
339 | 339 |
|
340 | 340 | return commandList; |
@@ -411,7 +411,7 @@ void StreamCommander::fetchCommand() |
411 | 411 | { |
412 | 412 | arguments = commandBuffer.substring( commandEnd + 1, stringEnd ); |
413 | 413 | } |
414 | | - |
| 414 | + |
415 | 415 | command = commandBuffer.substring( 0, commandEnd ); |
416 | 416 |
|
417 | 417 | // Send an Echo |
@@ -522,7 +522,7 @@ void StreamCommander::commandIsActive( String arguments, StreamCommander * insta |
522 | 522 | void StreamCommander::commandSetEcho( String arguments, StreamCommander * instance ) |
523 | 523 | { |
524 | 524 | arguments.trim(); |
525 | | - |
| 525 | + |
526 | 526 | if ( arguments.equals( F("on") ) ) |
527 | 527 | { |
528 | 528 | instance->setEchoCommands( true ); |
|
0 commit comments