File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,8 @@ static void boardInit(void) {
952
952
} else {
953
953
Serial.println (" Set S8 AbcDays failure" );
954
954
}
955
+
956
+ ag->s8 .printInformation ();
955
957
}
956
958
957
959
localServer.setFwMode (fwMode);
Original file line number Diff line number Diff line change @@ -835,3 +835,13 @@ bool S8::setAbcPeriod(int hours) {
835
835
* @return int Hour
836
836
*/
837
837
int S8::getAbcPeriod (void ) { return getCalibPeriodABC (); }
838
+
839
+
840
+ void S8::printInformation (void ) {
841
+ Serial.print (" S8 type ID: 0x" );
842
+ Serial.println (getSensorTypeId (), HEX);
843
+ Serial.print (" S8 serial number: 0x" );
844
+ Serial.println (getSensorId (), HEX);
845
+ Serial.print (" S8 memory map version: 0x" );
846
+ Serial.println (getMemoryMapVersion (), HEX);
847
+ }
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class S8 {
80
80
bool isBaseLineCalibrationDone (void );
81
81
bool setAbcPeriod (int hours);
82
82
int getAbcPeriod (void );
83
+ void printInformation (void );
83
84
84
85
private:
85
86
/* * Variables */
You can’t perform that action at this time.
0 commit comments