Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 202fc673 authored by Marcus Wolf's avatar Marcus Wolf Committed by Greg Kroah-Hartman
Browse files

staging: pi433: Fixes issue with bit shift in rf69_get_modulation



Fixes issue with bit shift in rf69_get_modulation

Signed-off-by: default avatarMarcus Wolf <linux@wolf-entwicklungen.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aece0902
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ enum modulation rf69_get_modulation(struct spi_device *spi)

	currentValue = READ_REG(REG_DATAMODUL);

	switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE >> 3) { // TODO improvement: change 3 to define
	switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE) {
	case DATAMODUL_MODULATION_TYPE_OOK: return OOK;
	case DATAMODUL_MODULATION_TYPE_FSK: return FSK;
	default:			    return undefined;