Skip to content

Commit c1919eb

Browse files
committed
Fixed typo
1 parent 281306b commit c1919eb

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/StreamCommander.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright 2019 Jan-Eric Schober
33
44
Licensed under the Apache License, Version 2.0 (the "License");
@@ -209,7 +209,7 @@ void StreamCommander::updateStatus( String status )
209209
if ( !getStatus().equals( status ) )
210210
{
211211
setStatus( status );
212-
212+
213213
// Only send a Status-Update if our device is set active
214214
if ( isActive() )
215215
{
@@ -321,20 +321,20 @@ int StreamCommander::getNumCommands()
321321
String StreamCommander::getCommandList()
322322
{
323323
String commandList = "";
324-
String commandSeperator = ", ";
324+
String commandSeparator = ", ";
325325

326326
for ( int i = 0; i < getNumCommands(); i++ )
327327
{
328-
commandList = commandList + *(commands[i].command) + commandSeperator;
328+
commandList = commandList + *(commands[i].command) + commandSeparator;
329329
}
330330

331-
// Remove the last command seperator
331+
// Remove the last command separator
332332
unsigned int listLength = commandList.length();
333-
unsigned int seperatorLength = commandSeperator.length();
333+
unsigned int separatorLength = commandSeparator.length();
334334

335335
if ( listLength > 0 )
336336
{
337-
commandList.remove( listLength - seperatorLength, seperatorLength );
337+
commandList.remove( listLength - separatorLength, separatorLength );
338338
}
339339

340340
return commandList;
@@ -411,7 +411,7 @@ void StreamCommander::fetchCommand()
411411
{
412412
arguments = commandBuffer.substring( commandEnd + 1, stringEnd );
413413
}
414-
414+
415415
command = commandBuffer.substring( 0, commandEnd );
416416

417417
// Send an Echo
@@ -522,7 +522,7 @@ void StreamCommander::commandIsActive( String arguments, StreamCommander * insta
522522
void StreamCommander::commandSetEcho( String arguments, StreamCommander * instance )
523523
{
524524
arguments.trim();
525-
525+
526526
if ( arguments.equals( F("on") ) )
527527
{
528528
instance->setEchoCommands( true );

0 commit comments

Comments
 (0)