An airtight compressor comprising: a fence, an airtight-compressor connector, an outer housing, and a printed-circuit board, the printed-circuit board comprising an electronic control, the fence comprising a protrusion, the printed-circuit board comprising: a first face and a second face, at least one resting means arranged on each of the first face and the second face, an electronic control connector, an electromagnetic interference filtering circuit, a grounding point comprising a contact for establishing contact with the protrusion of the fence, and external feed terminals, the electronic control being electrically connected to the external feed terminals and the electronic control connector, the electronic control, the electronic control connector and the external feed terminals being arranged on at least one of the faces (11, 12) of the printed-circuit board, the outer housing encapsulating the printed-circuit board to establish contact with the at least one resting means arranged on the first face of the printed-circuit board, the outer housing being fixed to the fence of the airtight compressor, the printed-circuit board being attached to the fence without the use of screws and being adapted to simultaneously: - establish contact with the airtight compressor by means of a contact between the at least one resting means arranged on the second face of the printed-circuit board and the fence of the airtight compressor; - establish an electric connection with the airtight compressor by means of an electric connection between the electronic control connector and the airtight-compressor connector; and - establish grounding of the electromagnetic interference filtering circuit with the airtight compressor by establishing an electric connection between the grounding point of the printed circuit board and the protrusion of the fence of the airtight compressor. a fence, an airtight-compressor connector, an outer housing, and a printed-circuit board, the printed-circuit board comprising an electronic control, the fence comprising a protrusion, the printed-circuit board comprising: a first face and a second face, at least one resting means arranged on each of the first face and the second face, an electronic control connector, an electromagnetic interference filtering circuit, a grounding point comprising a contact for establishing contact with the protrusion of the fence, and external feed terminals, a first face and a second face, at least one resting means arranged on each of the first face and the second face, an electronic control connector, an electromagnetic interference filtering circuit, a grounding point comprising a contact for establishing contact with the protrusion of the fence, and external feed terminals, the electronic control being electrically connected to the external feed terminals and the electronic control connector, the electronic control, the electronic control connector and the external feed terminals being arranged on at least one of the faces (11, 12) of the printed-circuit board, the outer housing encapsulating the printed-circuit board to establish contact with the at least one resting means arranged on the first face of the printed-circuit board, the outer housing being fixed to the fence of the airtight compressor, the printed-circuit board being attached to the fence without the use of screws and being adapted to simultaneously: - establish contact with the airtight compressor by means of a contact between the at least one resting means arranged on the second face of the printed-circuit board and the fence of the airtight compressor; - establish an electric connection with the airtight compressor by means of an electric connection between the electronic control connector and the airtight-compressor connector; and - establish grounding of the electromagnetic interference filtering circuit with the airtight compressor by establishing an electric connection between the grounding point of the printed circuit board and the protrusion of the fence of the airtight compressor. - establish contact with the airtight compressor by means of a contact between the at least one resting means arranged on the second face of the printed-circuit board and the fence of the airtight compressor; - establish an electric connection with the airtight compressor by means of an electric connection between the electronic control connector and the airtight-compressor connector; and - establish grounding of the electromagnetic interference filtering circuit with the airtight compressor by establishing an electric connection between the grounding point of the printed circuit board and the protrusion of the fence of the airtight compressor.