Merge branch 'master' of https://github.com/tildearrow/furnace into x1_010

This commit is contained in:
cam900 2022-03-07 13:05:05 +09:00
commit 13e586fab2
4 changed files with 15 additions and 1 deletions

View file

@ -122,7 +122,11 @@ void DivPlatformPCSpeaker::beepFreq(int freq) {
gettimeofday(&ie.time,NULL);
ie.type=EV_SND;
ie.code=SND_TONE;
ie.value=freq;
if (freq>0) {
ie.value=chipClock/freq;
} else {
ie.value=0;
}
if (write(beepFD,&ie,sizeof(struct input_event))<0) {
perror("error while writing frequency!");
} else {