IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2010-11-09 00:24:59 (13 years 4 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | e3bae73a5e61a721839118dbccabb61117b6b16a |
Message: | atspi-rssi/gui.c (gui): exit on keystroke or quit request |
Files: |
tools/atspi-rssi/gui.c (2 diffs) |
Change Details
tools/atspi-rssi/gui.c | ||
---|---|---|
112 | 112 | { |
113 | 113 | SDL_Surface *surf; |
114 | 114 | int z[N_CHAN*N_TIME]; |
115 | SDL_Event event; | |
115 | 116 | |
116 | 117 | memset(z, 0, sizeof(z)); |
117 | 118 | gettimeofday(&t0, NULL); |
... | ... | |
129 | 130 | } |
130 | 131 | |
131 | 132 | while (1) { |
133 | while (SDL_PollEvent(&event)) | |
134 | if (event.type == SDL_KEYDOWN || | |
135 | event.type == SDL_QUIT) | |
136 | return; | |
137 | ||
132 | 138 | shift_grid(z, N_CHAN, N_TIME); |
133 | 139 | sweep(dsc, z); |
134 | 140 |