aboutsummaryrefslogtreecommitdiff
path: root/libplanfahr/providers/hafas-bin6.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-05-08 08:50:10 +0200
committerGuido Günther <agx@sigxcpu.org>2015-05-08 09:04:55 +0200
commit5e6460ecd7ae28e9a09c3f5134111b49bca83d76 (patch)
tree6d2d2cfae2327f118d0c527d36a062d1be72308e /libplanfahr/providers/hafas-bin6.c
parentd3459b44bc732527578a8da15f15460d5a67608e (diff)
hafas: Both 0x10 and 0x20 flags seem to indicate cancelled trips
While 0x30 seems to indicate "trip cancelled", 0x20 seems to be "just" "stop skipped".
Diffstat (limited to 'libplanfahr/providers/hafas-bin6.c')
-rw-r--r--libplanfahr/providers/hafas-bin6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c
index 35b071c..2b2ac1b 100644
--- a/libplanfahr/providers/hafas-bin6.c
+++ b/libplanfahr/providers/hafas-bin6.c
@@ -358,7 +358,7 @@ hafas_bin6_parse_each_trip (const gchar *data, gsize num, guint base, const char
pd = HAFAS_BIN6_TRIP_PART_DETAIL(data, i, j);
LPF_DEBUG("Trip-Part #%d, Flags: %4d", j, pd->flags);
- if (pd->flags & HAFAS_BIN6_PART_DETAIL_FLAGS_CANCELED) {
+ if (pd->flags & HAFAS_BIN6_PART_DETAIL_FLAGS_CANCELED_MASK) {
status = LPF_TRIP_STATUS_FLAGS_CANCELED;
}