summaryrefslogtreecommitdiff
path: root/misc/amfm/files/patch-amfm.c
blob: 5a771fd4d0d87aa578a502ad7955b86d49cfeea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- amfm.c.orig	2017-02-27 12:28:56 UTC
+++ amfm.c
@@ -12,6 +12,7 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <hid.h>
 
@@ -28,7 +29,7 @@ int main(int argc, const char** argv) {
   HIDInterface* hid;
   HIDInterfaceMatcher matcher = { RADIO_VENDID, RADIO_DEVID, NULL, NULL, 0 };
 
-  unsigned char PACKET[SEND_PACKET_LENGTH] = { 0x28, 0xe2, 0x06, 0x03, 0x29, 0x52, 0x00, 0x10 };
+  unsigned char PACKET[SEND_PACKET_LENGTH] = { 0x28, 0xe2, 0x06, 0x03, 0x29, 0xd2, 0x00, 0x10 };
   unsigned char ZERO[0];
   unsigned short encodedFreq;
   unsigned int freq;