@@ -66,9 +66,6 @@ Wippersnapper::Wippersnapper() {
66
66
67
67
// UART
68
68
WS._uartComponent = new ws_uart ();
69
-
70
- // DallasSemi (OneWire)
71
- WS._ds18x20Component = new ws_ds18x20 ();
72
69
};
73
70
74
71
/* *************************************************************************/
@@ -1319,43 +1316,6 @@ void cbPWMMsg(char *data, uint16_t len) {
1319
1316
bool cbDecodeDs18x20Msg (pb_istream_t *stream, const pb_field_t *field,
1320
1317
void **arg) {
1321
1318
(void )arg; // marking unused parameter to avoid compiler warning
1322
- if (field->tag ==
1323
- wippersnapper_signal_v1_Ds18x20Request_req_ds18x20_init_tag) {
1324
- WS_DEBUG_PRINTLN (" [Message Type] Init. DS Sensor" );
1325
- // Attempt to decode contents of DS18x20 message
1326
- wippersnapper_ds18x20_v1_Ds18x20InitRequest msgDS18xInitReq =
1327
- wippersnapper_ds18x20_v1_Ds18x20InitRequest_init_zero;
1328
-
1329
- if (!ws_pb_decode (stream,
1330
- wippersnapper_ds18x20_v1_Ds18x20InitRequest_fields,
1331
- &msgDS18xInitReq)) {
1332
- WS_DEBUG_PRINTLN (" ERROR: Could not decode "
1333
- " wippersnapper_ds18x20_v1_Ds18x20InitRequest" );
1334
- return false ; // fail out if we can't decode the request
1335
- }
1336
- WS_DEBUG_PRINT (" Adding DS18x20 Component..." );
1337
- if (!WS._ds18x20Component ->addDS18x20 (&msgDS18xInitReq))
1338
- return false ;
1339
- WS_DEBUG_PRINTLN (" Added!" );
1340
- } else if (field->tag ==
1341
- wippersnapper_signal_v1_Ds18x20Request_req_ds18x20_deinit_tag) {
1342
- WS_DEBUG_PRINTLN (" [Message Type] De-init. DS Sensor" );
1343
- // Attempt to decode contents of message
1344
- wippersnapper_ds18x20_v1_Ds18x20DeInitRequest msgDS18xDeInitReq =
1345
- wippersnapper_ds18x20_v1_Ds18x20DeInitRequest_init_zero;
1346
- if (!ws_pb_decode (stream,
1347
- wippersnapper_ds18x20_v1_Ds18x20DeInitRequest_fields,
1348
- &msgDS18xDeInitReq)) {
1349
- WS_DEBUG_PRINTLN (" ERROR: Could not decode "
1350
- " wippersnapper_ds18x20_v1_Ds18x20DeInitRequest" );
1351
- return false ; // fail out if we can't decode the request
1352
- }
1353
- // exec. deinit request
1354
- WS._ds18x20Component ->deleteDS18x20 (&msgDS18xDeInitReq);
1355
- } else {
1356
- WS_DEBUG_PRINTLN (" ERROR: DS Message type not found!" );
1357
- return false ;
1358
- }
1359
1319
return true ;
1360
1320
}
1361
1321
@@ -2876,10 +2836,6 @@ ws_status_t Wippersnapper::run() {
2876
2836
WS._i2cPort0 ->update ();
2877
2837
WS.feedWDT ();
2878
2838
2879
- // Process DS18x20 sensor events
2880
- WS._ds18x20Component ->update ();
2881
- WS.feedWDT ();
2882
-
2883
2839
// Process UART sensor events
2884
2840
WS._uartComponent ->update ();
2885
2841
WS.feedWDT ();
0 commit comments