formatting

This commit is contained in:
Robin Müller 2020-12-14 22:23:28 +01:00 committed by Robin.Mueller
parent 269b8ee9b8
commit 54c11f6503

View File

@ -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];