X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fnewmodules%2Fn7110.c;fp=common%2Fnewmodules%2Fn7110.c;h=78bffaff2613d5c59f6e827270cb048cc473d557;hp=e260cfd7ea86a9b381ac601e3316287d409d3e48;hb=9243ae4a92a0e97f3c850018930fc50ff3f75544;hpb=1a6c5e5f47c4e40cacea0f72f0431e11a8dc9f0f diff --git a/common/newmodules/n7110.c b/common/newmodules/n7110.c index e260cfd..78bffaf 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, @@ -1156,7 +1156,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 */ @@ -2886,18 +2886,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, @@ -3081,7 +3081,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