summaryrefslogtreecommitdiff
path: root/easytool/data.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-12 20:30:07 +0800
committerHarald Welte <laforge@gnumonks.org>2010-08-12 20:30:07 +0800
commita1111c14e99e17688c237ce2041080fa765425e3 (patch)
treef9a42e6103d989687272dfda2469f98c5a27d6fc /easytool/data.c
parentb134db2bdc1f3334cd11853b5b9426266d3995b4 (diff)
add support for decoding re-entering of a station
When entering, leaving and re-entering the station, a different transaction code (0x80) seems to be used, as opposed to the normal 0x00. I don't really understand why, since at least billing-wise it makes no difference. If you enter and leave without a ride, you still need to pay the fare. However, it might count as a 'connection' similar to the situation when you make a connection from bus to MRT or otherwise. In that case, there is some reduction of the fare price of the second ride.
Diffstat (limited to 'easytool/data.c')
-rw-r--r--easytool/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/easytool/data.c b/easytool/data.c
index ac5530b..4b706a7 100644
--- a/easytool/data.c
+++ b/easytool/data.c
@@ -118,6 +118,7 @@ const struct value_string taipei_mrt_stn_id[] = {
/* Easycard Transaction Type names */
const struct value_string easy_tt_names[] = {
{ EASY_TT_MRT_ENTER, "Enter MRT Stn" },
+ { EASY_TT_MRT_REENTER, "ReEnter MRT Stn" },
{ EASY_TT_MRT_EXIT, "Leave MRT Stn" },
{ EASY_TT_PURCHASE, "Shop Purchase" },
{ 0, NULL }
personal git repositories of Harald Welte. Your mileage may vary