Skip to content

Commit 3c7a32b

Browse files
committed
PEC status feature fix and expansion
1 parent 1056ed6 commit 3c7a32b

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

addons/Ethernet/Ethernet.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define FirmwareTime __TIME__
3939
#define FirmwareVersionMajor "1"
4040
#define FirmwareVersionMinor "5"
41-
#define FirmwareVersionPatch "b"
41+
#define FirmwareVersionPatch "d"
4242

4343
#define Version FirmwareVersionMajor "." FirmwareVersionMinor FirmwareVersionPatch
4444

addons/Ethernet/MountStatus.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ class MountStatus {
4242
if (strstr(s,"p")) _parked=false;
4343
_parking = strstr(s,"I");
4444
_parkFail = strstr(s,"F");
45+
4546
_pecRecorded = strstr(s,"R");
46-
_pecRecording= strstr(s,"W");
47+
_pecIgnore = strstr(s,"/");
48+
_pecReadyPlay= strstr(s,",");
49+
_pecPlaying = strstr(s,"~");
50+
_pecReadyRec = strstr(s,";");
51+
_pecRecording= strstr(s,"^");
4752

4853
_atHome = strstr(s,"H");
4954
_ppsSync = strstr(s,"S");
@@ -90,6 +95,10 @@ class MountStatus {
9095
bool parked() { return _parked; }
9196
bool parking() { return _parking; }
9297
bool parkFail() { return _parkFail; }
98+
bool pecIgnore() { return _pecIgnore; }
99+
bool pecReadyPlay() { return _pecReadyPlay; }
100+
bool pecPlaying() { return _pecPlaying; }
101+
bool pecReadyRec() { return _pecReadyRec; }
93102
bool pecRecorded() { return _pecRecorded; }
94103
bool pecRecording() { return _pecRecording; }
95104
bool atHome() { return _atHome; }
@@ -128,6 +137,10 @@ class MountStatus {
128137
bool _parked=false;
129138
bool _parking=false;
130139
bool _parkFail=false;
140+
bool _pecIgnore=false;
141+
bool _pecReadyPlay=false;
142+
bool _pecPlaying=false;
143+
bool _pecReadyRec=false;
131144
bool _pecRecorded=false;
132145
bool _pecRecording=false;
133146
bool _atHome=false;

addons/WiFi-Bluetooth/MountStatus.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ class MountStatus {
4242
if (strstr(s,"p")) _parked=false;
4343
_parking = strstr(s,"I");
4444
_parkFail = strstr(s,"F");
45+
4546
_pecRecorded = strstr(s,"R");
46-
_pecRecording= strstr(s,"W");
47+
_pecIgnore = strstr(s,"/");
48+
_pecReadyPlay= strstr(s,",");
49+
_pecPlaying = strstr(s,"~");
50+
_pecReadyRec = strstr(s,";");
51+
_pecRecording= strstr(s,"^");
4752

4853
_atHome = strstr(s,"H");
4954
_ppsSync = strstr(s,"S");
@@ -90,6 +95,10 @@ class MountStatus {
9095
bool parked() { return _parked; }
9196
bool parking() { return _parking; }
9297
bool parkFail() { return _parkFail; }
98+
bool pecIgnore() { return _pecIgnore; }
99+
bool pecReadyPlay() { return _pecReadyPlay; }
100+
bool pecPlaying() { return _pecPlaying; }
101+
bool pecReadyRec() { return _pecReadyRec; }
93102
bool pecRecorded() { return _pecRecorded; }
94103
bool pecRecording() { return _pecRecording; }
95104
bool atHome() { return _atHome; }
@@ -128,6 +137,10 @@ class MountStatus {
128137
bool _parked=false;
129138
bool _parking=false;
130139
bool _parkFail=false;
140+
bool _pecIgnore=false;
141+
bool _pecReadyPlay=false;
142+
bool _pecPlaying=false;
143+
bool _pecReadyRec=false;
131144
bool _pecRecorded=false;
132145
bool _pecRecording=false;
133146
bool _atHome=false;

addons/WiFi-Bluetooth/WiFi-Bluetooth.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define FirmwareTime __TIME__
3838
#define FirmwareVersionMajor "1"
3939
#define FirmwareVersionMinor "5"
40-
#define FirmwareVersionPatch "b"
40+
#define FirmwareVersionPatch "c"
4141

4242
#define Version FirmwareVersionMajor "." FirmwareVersionMinor FirmwareVersionPatch
4343

0 commit comments

Comments
 (0)