formatting
This commit is contained in:
parent
269b8ee9b8
commit
54c11f6503
@ -308,17 +308,16 @@ ReturnValue_t MGMHandlerLIS3MDL::enableTemperatureSensor(
|
|||||||
return INVALID_NUMBER_OR_LENGTH_OF_PARAMETERS;
|
return INVALID_NUMBER_OR_LENGTH_OF_PARAMETERS;
|
||||||
}
|
}
|
||||||
switch (*commandData) {
|
switch (*commandData) {
|
||||||
case (MGMLIS3MDL::ON):
|
case (MGMLIS3MDL::ON): {
|
||||||
commandBuffer[1] = registers[0] | (1 << 7);
|
commandBuffer[1] = registers[0] | (1 << 7);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case (MGMLIS3MDL::OFF):
|
case (MGMLIS3MDL::OFF): {
|
||||||
commandBuffer[1] = registers[0] & ~(1 << 7);
|
commandBuffer[1] = registers[0] & ~(1 << 7);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return INVALID_COMMAND_PARAMETER;
|
return INVALID_COMMAND_PARAMETER;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
registers[0] = commandBuffer[1];
|
registers[0] = commandBuffer[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user