Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified resources/data/trips.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def generate_files(source_dir, target_dir):

for i, trip in enumerate(trips_txt):
tr.append({
'direction': int(not int(trip['direction_id'])), # We picked opposing values for north/south.
'direction': int(trip['direction_id']),
'route': route_map[trip['route_id']],
'service': cal_map[trip['service_id']],
'trip_name': int(trip['trip_short_name'])}),
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def parse_resources(resources_dir):
trips = []
for counter in range(trips_len):
name, direction, route, service = struct.unpack_from('<HBBB', trips_dat, header_len + counter * record_len)
direction = 'Northbound' if direction else 'Southbound'
direction = 'Southbound' if direction else 'Northbound'
route = route_map[route]
service = calendar[service]
trips.append({
Expand Down
2 changes: 1 addition & 1 deletion src/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

// Indicates which direction a train is going in.
typedef enum {
TrainDirectionSouthbound,
TrainDirectionNorthbound,
TrainDirectionSouthbound,
} TrainDirection;

// Describes a physical station.
Expand Down
2 changes: 1 addition & 1 deletion src/train_times_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static TrainStop s_stop;
static TrainTime *s_times;
static uint16_t s_time_count;

static const char *s_direction_names[2] = {"Southbound", "Northbound"};
static const char *s_direction_names[2] = {"Northbound", "Southbound"};

#ifdef PBL_ROUND
static StatusBarLayer *s_status_bar;
Expand Down