Skip to content

Commit 77721ef

Browse files
committed
Updates
1 parent 2e64e3d commit 77721ef

23 files changed

+223
-20
lines changed

src/Commands/GetLed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class GetLed extends Command
1313
{
14-
protected $description = 'Get the colour of the specified LED';
14+
protected $description = 'Get an LED colour';
1515

1616
protected $signature = 'revpi:led:get {position}';
1717

src/Commands/Info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class Info extends Command
1212
{
13-
protected $description = 'Display device list information';
13+
protected $description = 'Display device information';
1414

1515
protected $signature = 'revpi:info';
1616

src/Commands/Listen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class Listen extends Command
1818
{
19-
protected $description = 'Start the server';
19+
protected $description = 'Listen for incoming websocket requests';
2020

2121
protected $signature = 'revpi:listen {--address=0.0.0.0} {--port=12873}';
2222

src/Commands/Run.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class Run extends Command
1212
{
13-
protected $description = 'Run the program';
13+
protected $description = 'Start the event loop';
1414

1515
protected $signature = 'revpi:run';
1616

src/Commands/SetLed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class SetLed extends Command
1414
{
15-
protected $description = 'Set the specified LED to the specified colour';
15+
protected $description = 'Set an LED colour';
1616

1717
protected $signature = 'revpi:led:set {position} {colour}';
1818

src/Exceptions/NotImplementedException.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/Hardware/Virtual/VirtualBlockDevice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Flat3\RevPi\Hardware\Virtual;
66

7-
use Flat3\RevPi\Exceptions\NotImplementedException;
7+
use Flat3\RevPi\Exceptions\NotSupportedException;
88
use Flat3\RevPi\Interfaces\Hardware\Device;
99
use Flat3\RevPi\Interfaces\Hardware\Seek;
1010

@@ -81,7 +81,7 @@ public function lseek(int $offset, int $whence): int
8181
SEEK_SET => $offset,
8282
SEEK_CUR => $curPos + $offset,
8383
SEEK_END => $memLen + $offset,
84-
default => throw new NotImplementedException,
84+
default => throw new NotSupportedException,
8585
};
8686

8787
if ($newPos < 0 || $newPos > $memLen) {

src/Interfaces/Modules/Connect.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Flat3\RevPi\Interfaces\Modules;
6+
7+
use Flat3\RevPi\Interfaces\Module;
8+
9+
interface Connect extends Module {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Flat3\RevPi\Interfaces\Modules;
6+
7+
use Flat3\RevPi\Interfaces\Module;
8+
9+
interface Connect4 extends Module {}

src/Interfaces/Modules/Core.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Flat3\RevPi\Interfaces\Modules;
6+
7+
use Flat3\RevPi\Interfaces\Module;
8+
9+
interface Core extends Module {}

0 commit comments

Comments
 (0)