Commit 32b8ddc9 authored by PhiBo's avatar PhiBo 🚀

Function to get max sensor count

parent fa843fe6
......@@ -12,7 +12,12 @@ uint8_t ArduRPC_SensorNode::call(uint8_t cmd_id)
uint16_t eeprom_pos;
uint8_t i, data;
if (cmd_id == 0x10) {
if (cmd_id == 0x09) {
/* getMaxSensorCount() */
this->_rpc->writeResult_uint8(NODE_MAX_SENSOR_COUNT);
return RPC_RETURN_SUCCESS;
} else if (cmd_id == 0x10) {
/* getSensorType() */
sensor_id = this->_rpc->getParam_uint8();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment