Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -r48c75a394c56b82886760e9a136b638edecf7572 -rbce6e6d1cfb6e8a0b186419416460ead3a44e5e1 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 48c75a394c56b82886760e9a136b638edecf7572) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision bce6e6d1cfb6e8a0b186419416460ead3a44e5e1) @@ -90,6 +90,8 @@ #define FPGA_DGP_PUMP_ERROR_BIT 0x01 ///< Fresh dialysate pump error bit mask. #define FPGA_SDP_PUMP_ERROR_BIT 0x02 ///< Spent dialysate pump error bit mask. +#define FPGA_FLOATER_LEVEL_BIT 0x01 ///< Floater level bit mask. + /// FPGA size of V3 read bytes. #define FPGA_SIZE_OF_V3_READ_BYTES ( FPGA_READ_V3_END_BYTE_NUM - FPGA_READ_V3_START_BYTE_NUM ) @@ -2258,9 +2260,12 @@ * @details \b Outputs: none * @return last FPGA floater 1 level reading *************************************************************************/ -U08 getFPGAFloater1Status( void ) +BOOL getFPGAFloater1Status( void ) { - return fpgaSensorReadings.fpgaFloater1Status; + U08 mask = fpgaSensorReadings.fpgaFloater1Status & FPGA_FLOATER_LEVEL_BIT; + BOOL result = ( mask > 0 ? FALSE : TRUE ); + + return result; } /*********************************************************************//**