A device for producing blister packs with a plurality of storage compartments for supplying doses of medication, having dispensing devices for the selective delivery of doses of medication from the storage compartments and having a collecting device (3; 90, 95) for receiving the doses of medication delivered by the dispensing devices and passing on the doses of medication to a blistering device, wherein the blistering device fills the pockets of a blister pack in groups with the doses of medication received, wherein a group with which a pocket is filled comprises a dose of medication or several identical or different doses of medication, an inspection buffer device arranged between the collecting device (3; 90, 95) and the blistering device having: a buffer device for receiving the doses of medication passed on from the collecting device (3; 90, 95) and for the temporary storage of at least one group of doses of medication provided for filling a pocket, wherein the buffer device has a transport device which receives the doses of medication passed on by the collecting device (3; 90, 95) at a first location and transports them to a second location at which the sensor device captures the image and/or the predetermined properties of the group of doses of medication in temporary storage, a sensor device for capturing an image and/or predetermined properties of the group of doses of medication in temporary storage and an evaluation and control device which, with the help of the image captured by the sensor device and/or the predetermined properties captured by the sensor device, determines whether the group of doses of medication in temporary storage corresponds to a predetermined group of doses of medication to be used for filling and which controls the buffer device in such a manner that it only passes on the group in temporary storage to the blistering device if the group in temporary storage corresponds to the predetermined group, wherein the transport device is configured to pass on the group in temporary storage to the blistering device when the group of doses of medication in temporary storage corresponds to the predetermined group of doses of medication to be used for filling, characterized in that the transport device is configured to transport the group in temporary storage back to the first location, so that the missing dose(s) of medication can be supplied to the group there, if the group of doses of medication in temporary storage does not correspond to the predetermined group of doses of medication to be used for filling, because one or several doses of medication is/are missing from the group in temporary storage. a buffer device for receiving the doses of medication passed on from the collecting device (3; 90, 95) and for the temporary storage of at least one group of doses of medication provided for filling a pocket, wherein the buffer device has a transport device which receives the doses of medication passed on by the collecting device (3; 90, 95) at a first location and transports them to a second location at which the sensor device captures the image and/or the predetermined properties of the group of doses of medication in temporary storage, a sensor device for capturing an image and/or predetermined properties of the group of doses of medication in temporary storage and an evaluation and control device which, with the help of the image captured by the sensor device and/or the predetermined properties captured by the sensor device, determines whether the group of doses of medication in temporary storage corresponds to a predetermined group of doses of medication to be used for filling and which controls the buffer device in such a manner that it only passes on the group in temporary storage to the blistering device if the group in temporary storage corresponds to the predetermined group, wherein the transport device is configured to pass on the group in temporary storage to the blistering device when the group of doses of medication in temporary storage corresponds to the predetermined group of doses of medication to be used for filling, characterized in that the transport device is configured to transport the group in temporary storage back to the first location, so that the missing dose(s) of medication can be supplied to the group there, if the group of doses of medication in temporary storage does not correspond to the predetermined group of doses of medication to be used for filling, because one or several doses of medication is/are missing from the group in temporary storage.