X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fnewmodules%2Fn7110.c;h=b1c9c7ef3721dd18d029f3c2ac58142e7b72bd83;hp=376e41e936207b4cffd881c7b16c492e3d94de01;hb=d26d783c1703086d1774b5ef7e2dafec8c48e308;hpb=833e1c7c90e13ceaba3dde8e7a36fcc8dfb1db3c diff --git a/common/newmodules/n7110.c b/common/newmodules/n7110.c index 376e41e..b1c9c7e 100644 --- a/common/newmodules/n7110.c +++ b/common/newmodules/n7110.c @@ -78,7 +78,7 @@ GSM_Functions N7110_Functions = { N7110_SetAlarm, N6110_DialVoice, N6110_DialData, - N6110_GetIncomingCallNr, + N6110_GetIncomingCallNr, N6110_GetNetworkInfo, N7110_GetCalendarNote, N7110_WriteCalendarNote, @@ -1155,7 +1155,7 @@ GSM_Error N7110_GetCalendarNote(GSM_CalendarNote *CalendarNote) return GE_INVALIDCALNOTELOCATION; req[4] = CurrentCalendarNotesInfo.Location[CalendarNote->Location-1]>>8; - req[5] = CurrentCalendarNotesInfo.Location[CalendarNote->Location-1]&0xff; + req[5] = CurrentCalendarNotesInfo.Location[CalendarNote->Location-1]&0xff; CurrentCalendarNote = CalendarNote; /* We have to get current year. It's NOT written in frame for Birthday */ @@ -2887,18 +2887,18 @@ GSM_Error N7110_SetRingTone(GSM_Ringtone *ringtone, int *maxlength) /* Info from Till Toenshoff [till@uni.de] - One improvement - for looping you can use an alternative header - normal - 0x02, 0xFC, 0x09, 0x00, 0x0A, 0x01 - - loop - 0x02, 0xFC, 0x09, 0x00, 0x05, 0xLL, 0x0A, 0x01 - - LL=0x01-0x10 - - 0x01=loop once - [...] - 0x10=loop infinite + One improvement - for looping you can use an alternative header + normal + 0x02, 0xFC, 0x09, 0x00, 0x0A, 0x01 + + loop + 0x02, 0xFC, 0x09, 0x00, 0x05, 0xLL, 0x0A, 0x01 + + LL=0x01-0x10 + + 0x01=loop once + [...] + 0x10=loop infinite */ char tail[] = {0x40, 0x7D, 0x40, 0x5C, 0x0A, 0xFE, 0x40, 0x20, 0x40, 0x7D, 0x40, 0x37, 0x0A, 0xFE, @@ -3082,7 +3082,7 @@ GSM_Error N7110_SetBinRingTone(GSM_BinRingtone *ringtone) memcpy(req+35,ringtone->frame+i,ringtone->length-i); - Protocol->SendMessage(35+ringtone->length-i, 0x1f, req); + Protocol->SendMessage(35+ringtone->length-i, 0x1f, req); GSM->GetNetworkInfo(&NetworkInfo); //need to make something